This commit is contained in:
Sebastian
2024-03-26 10:53:48 +01:00
parent 65a1b21f91
commit b9e436c4a5
3 changed files with 7 additions and 6 deletions

View File

@@ -10,10 +10,11 @@ services:
environment:
BEDROCK_DATADIR: /geth
CHAIN_ID: 204
L2_RPC: https://opbnb-mainnet-rpc.bnbchain.org
L2_RPC: https://opbnb-mainnet-rpc.bnbchain.org # sequencer
NETWORK_NAME: mainnet
ports:
- ${PORT__OP_GETH:-8545}:8545
expose:
- 8545
- 8551
volumes:
- ./op-bnb/scripts/:/scripts
- .jwtsecret:/jwtsecret
@@ -46,7 +47,7 @@ services:
- .env
ports:
- ${PORT__OP_NODE_P2P:-3074}:3074
- ${PORT__OP_NODE:-8546}:8546
# - ${PORT__OP_NODE:-8546}:8546
volumes:
- ./op-bnb/scripts/:/scripts
- .jwtsecret:/jwtsecret

2
op-bnb/scripts/op-geth-start.sh Normal file → Executable file
View File

@@ -40,7 +40,6 @@ exec geth \
--ws.port=8545 \
--ws.origins="*" \
--ws.api=eth,engine \
--syncmode=full \
--maxpeers=10 \
--networkid=$CHAIN_ID \
--miner.gaslimit=150000000 \
@@ -61,3 +60,4 @@ exec geth \
--syncmode=full \
--bootnodes=$P2P_BOOTNODES \
--rollup.sequencerhttp=$L2_RPC

2
op-bnb/scripts/op-node-start.sh Normal file → Executable file
View File

@@ -36,7 +36,7 @@ exec op-node \
--pprof.enabled \
--rpc.enable-admin \
--l1=$OP_NODE__RPC_ENDPOINT \
--l2=http://op-geth:8551 \
--l2=http://op-bnb:8551 \
--l2.jwt-secret=./jwt.txt \
--l2.engine-sync=true \
--l2.skip-sync-start-check=true \