mirror of
https://github.com/tendermint/tendermint.git
synced 2026-06-04 05:12:36 +00:00
change mh variable
This commit is contained in:
@@ -463,12 +463,12 @@ func (c *Client) BlockResults(ctx context.Context, height *int64) (*coretypes.Re
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
rH := merkle.HashFromByteSlices(append([][]byte{bbeBytes}, rs...))
|
||||
mh := merkle.HashFromByteSlices(append([][]byte{bbeBytes}, rs...))
|
||||
|
||||
// Verify block results.
|
||||
if !bytes.Equal(rH, trustedBlock.LastResultsHash) {
|
||||
if !bytes.Equal(mh, trustedBlock.LastResultsHash) {
|
||||
return nil, fmt.Errorf("last results %X does not match with trusted last results %X",
|
||||
rH, trustedBlock.LastResultsHash)
|
||||
mh, trustedBlock.LastResultsHash)
|
||||
}
|
||||
|
||||
return res, nil
|
||||
|
||||
Reference in New Issue
Block a user