-
I have exported blocks using geth, and am trying to import them in reth. The file contains the RLPs concatenated, but for simplicity i'm just working with a file with 1 RLP. ./target/debug/reth import genesis.rlp --chain=./chiado_genesis_alloc.json Running the above gives the following error:
I tried generating an RLP file using reth itself, and then manually decoded both the RLPs. Here's the difference:
There's the EIP-1559 field in reth that's not in geth, and a couple extra fields vice versa. Can this be causing the issue? How can I solve this? If it's the EIP-1559 field, I tried setting Aside: I am doing something like this to copy over state and blocks from geth and getting them into reth. Since we have 2 extra fields in the header (pre-merge) which aren't in Eth Mainnet, is there a way to import the blocks without validating the hashes (because the default hasher will not include those 2 fields in the hashing)? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Additionally, if we want to start the node from a non-genesis block, it is mandatory to import If it's mandatory to import all blocks, can we
Because some old blocks have extra fields which will be ignored by reth, resulting in incorrect hashes. |
Beta Was this translation helpful? Give feedback.
-
for op-mainnet there's now an option to skip block/receipt import entirely: https://reth.rs/run/sync-op-mainnet.html#minimal-bootstrap-recommended the --without-ovm option doesn't quite fit for gnosis, but we could rename this. note that this is only part of the OP CLI: reth/crates/optimism/cli/src/commands/init_state/mod.rs Lines 25 to 35 in fa59bd5 |
Beta Was this translation helpful? Give feedback.
-
This sounds like an amazing idea. Can we move this into reth's cli (out of op-specific cli) while making it general purpose? |
Beta Was this translation helpful? Give feedback.
-
yep tracking here #12090 |
Beta Was this translation helpful? Give feedback.
-
thanks a lot ^-^ |
Beta Was this translation helpful? Give feedback.
for op-mainnet there's now an option to skip block/receipt import entirely: https://reth.rs/run/sync-op-mainnet.html#minimal-bootstrap-recommended
the --without-ovm option doesn't quite fit for gnosis, but we could rename this.
note that this is only part of the OP CLI:
reth/crates/optimism/cli/src/commands/init_state/mod.rs
Lines 25 to 35 in fa59bd5