From bcb81a95968e45556633723471f4486f23dd67b6 Mon Sep 17 00:00:00 2001 From: ucwong Date: Fri, 6 Mar 2026 02:13:47 +0800 Subject: [PATCH] validate proof last key fix --- trie/proof.go | 1 - 1 file changed, 1 deletion(-) diff --git a/trie/proof.go b/trie/proof.go index 882b790b38..91d6c68838 100644 --- a/trie/proof.go +++ b/trie/proof.go @@ -529,7 +529,6 @@ func VerifyRangeProof(rootHash common.Hash, firstKey []byte, lastKey []byte, key } // Special case, there is only one element and two edge keys are same. // In this case, we can't construct two edge paths. So handle it here. - lastKey = keys[len(keys)-1] if len(keys) == 1 && bytes.Equal(firstKey, lastKey) { root, val, err := proofToPath(rootHash, nil, firstKey, notary, false) if err != nil {