mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
trie: remove redundant comparision in VerifyRangeProof
This commit is contained in:
parent
341647f186
commit
37856d38d3
1 changed files with 0 additions and 3 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue