From 3783fbb3272043ba799e0856a0f55f7d2a272400 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Tue, 15 Mar 2022 00:00:46 -0400 Subject: [PATCH] change mh variable --- light/rpc/client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/light/rpc/client.go b/light/rpc/client.go index 94fd43b0a..f1c21c994 100644 --- a/light/rpc/client.go +++ b/light/rpc/client.go @@ -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