Skip to content

Conversation

jsvisa
Copy link
Contributor

@jsvisa jsvisa commented Sep 2, 2025

Extend the snapshot traverse-{raw}state to iterate with state trie or storage trie.

Full command as below:

geth snapshot traverse-state [--account <account>] [--start <key>] [--limit <key>] <state-root>
  1. Traverse the whole state from the given state root:
  • --start: starting account key (64/66 chars hex) [optional]
  • --limit: ending account key (64/66 chars hex) [optional]
  1. Traverse a specific account's storage:
  • --account: account address (40/42 chars) or hash (64/66 chars) [required]
  • --start: starting storage key (64/66 chars hex) [optional]
  • --limit: ending storage key (64/66 chars hex) [optional]

@rjl493456442 rjl493456442 self-assigned this Sep 2, 2025
@jsvisa jsvisa force-pushed the snapshot-traverse-trie branch from 26951e3 to 0603f0c Compare September 8, 2025 04:08
@jsvisa jsvisa changed the title cmd/geth: snapshot traverse trie with a start account cmd/geth: snapshot traverse account trie Sep 8, 2025
@jsvisa jsvisa force-pushed the snapshot-traverse-trie branch from 0603f0c to 43f7424 Compare September 11, 2025 04:24
Signed-off-by: jsvisa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants