|
|
@ -2,7 +2,7 @@ package types |
|
|
|
|
|
|
|
import ( |
|
|
|
abci "github.com/tendermint/abci/types" |
|
|
|
wire "github.com/tendermint/go-wire" |
|
|
|
wire "github.com/tendermint/tendermint/wire" |
|
|
|
cmn "github.com/tendermint/tmlibs/common" |
|
|
|
"github.com/tendermint/tmlibs/merkle" |
|
|
|
) |
|
|
@ -18,7 +18,7 @@ type ABCIResult struct { |
|
|
|
|
|
|
|
// Hash returns the canonical hash of the ABCIResult
|
|
|
|
func (a ABCIResult) Hash() []byte { |
|
|
|
return merkle.SimpleHashFromBinary(a) |
|
|
|
return tmHash(a) |
|
|
|
} |
|
|
|
|
|
|
|
// ABCIResults wraps the deliver tx results to return a proof
|
|
|
@ -40,7 +40,7 @@ func NewResultFromResponse(response *abci.ResponseDeliverTx) ABCIResult { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// Bytes serializes the ABCIResponse using go-wire
|
|
|
|
// Bytes serializes the ABCIResponse using wire
|
|
|
|
func (a ABCIResults) Bytes() []byte { |
|
|
|
bz, err := wire.MarshalBinary(a) |
|
|
|
if err != nil { |
|
|
|