simple-optimism-node icon indicating copy to clipboard operation
simple-optimism-node copied to clipboard

Upcoming features notice

Open Chomtana opened this issue 1 year ago • 10 comments
trafficstars

There may be a breaking change coming shortly

  • [ ] Beacon Archiver
  • [x] Snap Sync
  • [x] Base support

Chomtana avatar Feb 28 '24 07:02 Chomtana

How to initialize for snapsync ?

hdiass avatar Apr 15 '24 10:04 hdiass

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

Chomtana avatar Apr 15 '24 11:04 Chomtana

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

hdiass avatar Apr 15 '24 11:04 hdiass

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?

Chomtana avatar Apr 15 '24 12:04 Chomtana

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

Chomtana avatar Apr 15 '24 12:04 Chomtana

I'm not using this repo, but looking at to do my setup. And don't see initialization commands in any script

hdiass avatar Apr 15 '24 12:04 hdiass

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.

Chomtana avatar Apr 15 '24 13:04 Chomtana

Happens exactly with those instructions

hdiass avatar Apr 15 '24 13:04 hdiass

Have you passed

--op-network=op-mainnet

To op-geth? That's what allow it to load op-mainnet genesis

Chomtana avatar Apr 15 '24 18:04 Chomtana

Nope, that was probably the problem. Will test. Another question how long it takes to snap sync this days ?

hdiass avatar Apr 16 '24 09:04 hdiass