feat(l1): implement debug_getModifiedAccountsByNumber/Hash#6700
feat(l1): implement debug_getModifiedAccountsByNumber/Hash#6700azteca1998 wants to merge 4 commits into
Conversation
Add debug_getModifiedAccountsByNumber and debug_getModifiedAccountsByHash which return addresses modified between two blocks. Compares state tries of start and end blocks to find accounts that were created, modified, or deleted. Note: returns hashed addresses (converted to Address) since ethrex does not maintain a preimage store. The brute-force trie comparison is O(n) in total accounts; a trie-diff algorithm would be more efficient for mainnet scale. Part of #6572
|
Lines of code reportTotal lines added: Detailed view |
Execute a transfer, then query getModifiedAccountsByNumber and getModifiedAccountsByHash. Assert modified accounts are returned.
Summary
debug_getModifiedAccountsByNumberanddebug_getModifiedAccountsByHashdiff_state_rootshelper that iterates both triesCloses part of #6572
Test plan