reth
reth copied to clipboard
op mainnet pre-bedrock import
Describe the feature
importing op-mainnet pre-bedrock requires exported data:
- pre bedrock blocks+receipts
- state snapshot at bedrock block
Manually Steps:
export see https://github.com/testinprod-io/op-geth/pull/1. state can also be downloaded from https://datadirs.testinprod.io/world_trie_state_op_mainnet_b2c2b6e7edb919a0b856b9fd9aa02b11ead5305e63cdb33386babd82b9bc4cfe.jsonl.zst
in the following order
import blocks (must run in debug mode, fix pending https://github.com/paradigmxyz/reth/issues/7650)
$ ./op-reth import-op <exported-blocks.rlp>
import receipts
$ ./op-reth import-receipts --chain optimism <exported-receipts.rlp>
import state
$ ./op-reth init-state --chain optimism <state-dump.jsonl>
Additional context
-
[ ] goal is to export bedrock datadir
-
[x] syncing with
--debug.tipto latest block above bedrock with https://github.com/paradigmxyz/reth/pull/8021