fix(storage): dont skip consistency checks for op-mainnet if using minimal bootstrap (#11099)

This commit is contained in:
joshieDo
2024-09-24 17:10:44 +02:00
committed by GitHub
parent f2082e0411
commit 4da5f1f388
5 changed files with 30 additions and 11 deletions

View File

@ -2,10 +2,10 @@
To sync OP mainnet, bedrock state needs to be imported as a starting point. There are currently two ways:
* Minimal bootstrap: only state snapshot at Bedrock block is imported without any OVM historical data.
* Full bootstrap: state, blocks and receipts are imported.
* Minimal bootstrap **(recommended)**: only state snapshot at Bedrock block is imported without any OVM historical data.
* Full bootstrap **(not recommended)**: state, blocks and receipts are imported. *Not recommended for now: [storage consistency issue](https://github.com/paradigmxyz/reth/pull/11099) tldr: sudden crash may break the node
## Minimal bootstrap
## Minimal bootstrap (recommended)
**The state snapshot at Bedrock block is required.** It can be exported from [op-geth](https://github.com/testinprod-io/op-erigon/blob/pcw109550/bedrock-db-migration/bedrock-migration.md#export-state) (**.jsonl**) or downloaded directly from [here](https://mega.nz/file/GdZ1xbAT#a9cBv3AqzsTGXYgX7nZc_3fl--tcBmOAIwIA5ND6kwc).
@ -16,7 +16,9 @@ $ op-reth node --chain optimism --datadir op-mainnet --debug.tip 0x098f87b75c8b8
```
## Full bootstrap
## Full bootstrap (not recommended)
**Not recommended for now**: [storage consistency issue](https://github.com/paradigmxyz/reth/pull/11099) tldr: sudden crash may break the node.
### Import state