Browse Source

change mh variable

pull/8094/head
William Banfield 3 years ago
parent
commit
3783fbb327
No known key found for this signature in database GPG Key ID: EFAD3442BF29E3AC
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      light/rpc/client.go

+ 3
- 3
light/rpc/client.go View File

@ -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


Loading…
Cancel
Save