remove Must* proof and hash functions

This commit is contained in:
William Banfield
2022-03-09 16:30:08 -05:00
parent ee2a9a1620
commit c25f7769a6
8 changed files with 123 additions and 169 deletions
+5 -1
View File
@@ -459,7 +459,11 @@ func (c *Client) BlockResults(ctx context.Context, height *int64) (*coretypes.Re
}
// Build a Merkle tree out of the slice.
rH := merkle.HashFromByteSlices([][]byte{bbeBytes, abci.MustHashResults(res.TxsResults)})
rs, err := abci.TxResultsToByteSlices(res.TxsResults)
if err != nil {
return nil, err
}
rH := merkle.HashFromByteSlices(append([][]byte{bbeBytes}, rs...))
// Verify block results.
if !bytes.Equal(rH, trustedBlock.LastResultsHash) {