From 37856d38d32fc03dc50bba103923d773efd81fe4 Mon Sep 17 00:00:00 2001 From: j2gg0s Date: Mon, 23 Dec 2024 19:43:21 +0800 Subject: [PATCH] trie: remove redundant comparision in VerifyRangeProof --- trie/proof.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/trie/proof.go b/trie/proof.go index 2e527348bf..f50a68b247 100644 --- a/trie/proof.go +++ b/trie/proof.go @@ -526,9 +526,6 @@ func VerifyRangeProof(rootHash common.Hash, firstKey []byte, keys [][]byte, valu if err != nil { return false, err } - if !bytes.Equal(firstKey, keys[0]) { - return false, errors.New("correct proof but invalid key") - } if !bytes.Equal(val, values[0]) { return false, errors.New("correct proof but invalid data") }