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: environment:
BEDROCK_DATADIR: /geth BEDROCK_DATADIR: /geth
CHAIN_ID: 204 CHAIN_ID: 204
L2_RPC: https://opbnb-mainnet-rpc.bnbchain.org L2_RPC: https://opbnb-mainnet-rpc.bnbchain.org # sequencer
NETWORK_NAME: mainnet NETWORK_NAME: mainnet
ports: expose:
- ${PORT__OP_GETH:-8545}:8545 - 8545
- 8551
volumes: volumes:
- ./op-bnb/scripts/:/scripts - ./op-bnb/scripts/:/scripts
- .jwtsecret:/jwtsecret - .jwtsecret:/jwtsecret
@@ -46,7 +47,7 @@ services:
- .env - .env
ports: ports:
- ${PORT__OP_NODE_P2P:-3074}:3074 - ${PORT__OP_NODE_P2P:-3074}:3074
- ${PORT__OP_NODE:-8546}:8546 # - ${PORT__OP_NODE:-8546}:8546
volumes: volumes:
- ./op-bnb/scripts/:/scripts - ./op-bnb/scripts/:/scripts
- .jwtsecret:/jwtsecret - .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.port=8545 \
--ws.origins="*" \ --ws.origins="*" \
--ws.api=eth,engine \ --ws.api=eth,engine \
--syncmode=full \
--maxpeers=10 \ --maxpeers=10 \
--networkid=$CHAIN_ID \ --networkid=$CHAIN_ID \
--miner.gaslimit=150000000 \ --miner.gaslimit=150000000 \
@@ -61,3 +60,4 @@ exec geth \
--syncmode=full \ --syncmode=full \
--bootnodes=$P2P_BOOTNODES \ --bootnodes=$P2P_BOOTNODES \
--rollup.sequencerhttp=$L2_RPC --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 \ --pprof.enabled \
--rpc.enable-admin \ --rpc.enable-admin \
--l1=$OP_NODE__RPC_ENDPOINT \ --l1=$OP_NODE__RPC_ENDPOINT \
--l2=http://op-geth:8551 \ --l2=http://op-bnb:8551 \
--l2.jwt-secret=./jwt.txt \ --l2.jwt-secret=./jwt.txt \
--l2.engine-sync=true \ --l2.engine-sync=true \
--l2.skip-sync-start-check=true \ --l2.skip-sync-start-check=true \