[OP Stack Deployment] OP-geth chain ID #552
-
Did you check the documentation?
Did you check for duplicate questions?
Issue DescriptionI have been trying to deploy an OP stack rollup. I have succeeded in the past, but today when I try to restart my rollup, something wrong happens with starting the proposer(something is wrong with the l2oo I suppose, as I haven't restarted the rollup for about two weeks), so I try to go over the whole tutorials again and redeploy another rollup. But it seems that the op-geth is always linking to the main net which the chain ID is 1, I have no idea where to change this. The op-node genesis file only have the option to change the L2 chain ID I suppose? And this causes the problem of starting op-node, because the log says incorrect L2 RPC chain ID. Links to the tutorial: https://docs.optimism.io/builders/chain-operators/tutorials/create-l2-rollup OP-geth version:1.14.7 as in op-geth/parms/verision.go Logsop-geth:
op-node:
Additional InformationWhen I create the genesis file following the tutorials, it says head block is not reachable. And there is also something wrong with this error:sers\86186\op-geth\datadir\geth\chaindata\ancient\chain readonly=false FeedbackNo response |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
Hello! To help clarify your situation, could you please specify:
|
Beta Was this translation helpful? Give feedback.
-
It should be about the genesis file generation where it says head block is not reachable Do you have a full log on this? |
Beta Was this translation helpful? Give feedback.
-
I have used a alchemy RPC linked to the Sepolia, why would the op-geth connected to the mainnet? |
Beta Was this translation helpful? Give feedback.
-
Hey @zhaozaao, can you please edit the original post with the following information:
|
Beta Was this translation helpful? Give feedback.
-
I solve this problem by using state schema as hash when creating the genesis file. |
Beta Was this translation helpful? Give feedback.
I solve this problem by using state schema as hash when creating the genesis file.
$ ./build/bin/geth init --datadir=datadir --state.scheme hash genesis.json