Skip to content

Commit

Permalink
trie: remove redundant comparision in VerifyRangeProof
Browse files Browse the repository at this point in the history
  • Loading branch information
j2gg0s committed Dec 23, 2024
1 parent 341647f commit 37856d3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions trie/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 37856d3

Please sign in to comment.