Skip to content

Commit e9eadbd

Browse files
authored
Merge pull request #2669 from CortexFoundation/dev
validate proof last key fix
2 parents a429963 + bcb81a9 commit e9eadbd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

trie/proof.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,6 @@ func VerifyRangeProof(rootHash common.Hash, firstKey []byte, lastKey []byte, key
529529
}
530530
// Special case, there is only one element and two edge keys are same.
531531
// In this case, we can't construct two edge paths. So handle it here.
532-
lastKey = keys[len(keys)-1]
533532
if len(keys) == 1 && bytes.Equal(firstKey, lastKey) {
534533
root, val, err := proofToPath(rootHash, nil, firstKey, notary, false)
535534
if err != nil {

0 commit comments

Comments
 (0)