mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-31 16:21:21 +00:00
80530e10a9
This PR completes the implementation of `eth_getProof` by adding support for storage proofs. Because storage proofs are potentially overlapping, the existing strategy of simply aggregating all proofs together into a single result was challenging. Instead, this commit rewires things to introduce a ProofRetainer, which aggregates proofs and their corresponding nibble encoded paths in the trie. Once all of the proofs have been aggregated, the caller requests the proof result, which then iterates over the aggregated proofs, placing each into the relevant proof array into the result. Although there are tests for `eth_getProof` as an RPC and for the new `ProofRetainer` code, the code coverage for the proof generation over complex tries is lacking. But, since this is not a new problem I'll plan to follow up this PR with an additional one adding more coverage into `turbo/trie`. --------- Co-authored-by: Jason Yellick <jason@enya.ai> |
||
---|---|---|
.. | ||
abigen | ||
bootnode | ||
devnet | ||
downloader | ||
ef-tests-cl | ||
erigon | ||
erigon-cl | ||
erigon-el | ||
erigon-el-mock | ||
erigoncustom | ||
evm | ||
hack | ||
integration | ||
lightclient | ||
observer | ||
p2psim | ||
pics | ||
prometheus | ||
release | ||
rlpdump | ||
rpcdaemon | ||
rpctest | ||
sentinel | ||
sentry | ||
state | ||
txpool | ||
utils | ||
verkle |