Skip to content

Conversation

tac0turtle
Copy link
Contributor

Overview

Add CLI tool to dump Reth node's plain state into genesis alloc format

  • reth-dump-alloc: exports current state to alloc.json
  • genesis-merge: merges alloc into genesis template
  • Supports balance, nonce, code, and storage export
  • Configurable empty EOA handling

…at: │

   - reth-dump-alloc: exports current state to alloc.json                                                                                                                                                                                                                                                                                                     │
   - genesis-merge: merges alloc into genesis template                                                                                                                                                                                                                                                                                                        │
   - Supports balance, nonce, code, and storage export                                                                                                                                                                                                                                                                                                        │
   - Configurable empty EOA handling
@tac0turtle tac0turtle changed the title tool: add a tool to dump state from a reth db into alloc allowing it to be used in a new a genesis tool: reth-dump to create new genesis from live networks Sep 8, 2025
@tac0turtle tac0turtle marked this pull request as ready for review September 9, 2025 15:12
@tac0turtle tac0turtle merged commit ab03489 into main Oct 10, 2025
@damiannolan
Copy link

Does this take a state dump from a live node and create a genesis file that can be used to start a new with that genesis state? 👀

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.

3 participants