[x] New feature (non-breaking change which adds functionality)
Contents
This PR merged .go files of #1756.
Have a new function, GenerateWitness to export json for stack trie.
Add isTxProof flag in equipLeafWithModExtensionNode and `addBranchAndPlaceholder' to avoid touching the exising logic of the state trie.
Fix GetProof(): before this fix, if any hashed nodes in the proof, other non-hashed nodes will not append to the proof. This causes the output proofs are incorrect.
Add nibbles and proof type in StackProof for exporting json files.
Modified extension node is not included in this PR, will do it in futher PR. #1809
Description
closed #1752
Issue Link
1752
Type of change
Contents
GenerateWitness
to export json for stack trie.isTxProof
flag inequipLeafWithModExtensionNode
and `addBranchAndPlaceholder' to avoid touching the exising logic of the state trie.GetProof()
: before this fix, if any hashed nodes in the proof, other non-hashed nodes will not append to the proof. This causes the output proofs are incorrect.StackProof
for exporting json files.