RIPEMD160 -> SHA256

This commit is contained in:
Ethan Buchman
2018-07-01 01:40:03 -04:00
parent d47b4ef12d
commit ec710395b7
9 changed files with 33 additions and 23 deletions

View File

@@ -2,8 +2,8 @@ package types
import (
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/crypto/merkle"
cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tendermint/libs/merkle"
)
//-----------------------------------------------------------------------------
@@ -51,6 +51,8 @@ func (a ABCIResults) Bytes() []byte {
// Hash returns a merkle hash of all results
func (a ABCIResults) Hash() []byte {
// NOTE: we copy the impl of the merkle tree for txs -
// we should be consistent and either do it for both or not.
return merkle.SimpleHashFromHashers(a.toHashers())
}