simple-optimism-node
simple-optimism-node copied to clipboard
Upcoming features notice
There may be a breaking change coming shortly
- [ ] Beacon Archiver
- [x] Snap Sync
- [x] Base support
How to initialize for snapsync ?
Snap sync is now a default option for simple-optimism-node. You can enter your L1 endpoints and start the docker compose as usual and it should start snap sync within 30 min.
Or you can explicitly set OP_GETH__SYNCMODE=snap in .env
If i don't use a snapshot to initlialize the op-geth the op-node fails
failed to setup: unable to create the rollup node: failed to init L2: incorrect L2 RPC chain id 1, expected 10
Hmm that's weird. Are you sure you're on the latest simple-optimism-node (git pull)?
Or have you copied .env.example to .env before changing the config?
Also don't forget to add --build when restarting the docker compose if you have run simple-optimism-node before. Otherwise, it won't update.
docker compose pull
docker compose up -d --build
I'm not using this repo, but looking at to do my setup. And don't see initialization commands in any script
Please refer to this guide for snap sync on manual setup: https://docs.optimism.io/builders/node-operators/management/snap-sync
Also please open an issue on https://github.com/ethereum-optimism/developers/discussions instead if you're not using simple-optimism-node to prevent confusion.
Happens exactly with those instructions
Have you passed
--op-network=op-mainnet
To op-geth? That's what allow it to load op-mainnet genesis
Nope, that was probably the problem. Will test. Another question how long it takes to snap sync this days ?