Skip to content

[EVM] Add examples on how to start a fresh chain with the pre-existing state using reth #2392

@Manav-Aggarwal

Description

@Manav-Aggarwal

We should add examples/documentation around how to export state from an existing chain and be able to start a fresh chain with the pre-existing state when using reth with Rollkit.

This is useful for users that would need to start a new Rollkit chain using the latest version when some breaking change is released but not re-deploy all contracts/tooling again from scratch.

EDIT: It's useful to constrain the scope of this issue to just the specific chain, so it's a fresh rollkit chain with height 1, and assume no previous state needs to be migrated or put on Celestia. So a new node would just look at this pre-existing state as the genesis state.

This issue arose from an EVM user who had a bunch of solidity contracts already deployed on their chain (especially ones from an external evm account abstraction tooling team called pimilco) and we had a breaking change for them which was running a rollkit node using lumen instead of vanilla reth, so they had to restart a completely fresh chain without any state. They indicated that having the option for them to start the chain with pre-existing state with all their deployed contracts/user balances existed would have been preferred for them so they didn't need to prompt pimilco to deploy their contracts again.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

For Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions