Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
replace isBranch in stackTrie
Browse files Browse the repository at this point in the history
  • Loading branch information
KimiWu123 committed Apr 19, 2024
1 parent a5b0b2e commit 63c5ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geth-utils/gethutil/mpt/witness/prepare_witness.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ func GenerateWitness(txIdx uint, key, value []byte, proof *trie.StackProof) []No
if mismatchedIdx == -1 {
// Add a tx leaf after branch placeholder
if lastProofTypeS == trie.LeafNode {
leafNode = prepareTxLeafNode(txIdx, proofS[len1-1], proofC[len2-1], k, nil, isBranch(proofS[len1-1]), false, false)
leafNode = prepareTxLeafNode(txIdx, proofS[len1-1], proofC[len2-1], k, nil, proofTypeS[len1-1] != trie.BranchNode, false, false)
} else {
leafNode = prepareTxLeafAndPlaceholderNode(txIdx, proofC[len2-1], k, false)
}
Expand Down

0 comments on commit 63c5ea0

Please sign in to comment.