diff --git a/op-bnb.yml b/op-bnb.yml index 8df5845e..b1a72099 100644 --- a/op-bnb.yml +++ b/op-bnb.yml @@ -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 diff --git a/op-bnb/scripts/op-geth-start.sh b/op-bnb/scripts/op-geth-start.sh old mode 100644 new mode 100755 index 405f3bf9..4bdaef5d --- a/op-bnb/scripts/op-geth-start.sh +++ b/op-bnb/scripts/op-geth-start.sh @@ -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 + diff --git a/op-bnb/scripts/op-node-start.sh b/op-bnb/scripts/op-node-start.sh old mode 100644 new mode 100755 index 292ea506..73f2b129 --- a/op-bnb/scripts/op-node-start.sh +++ b/op-bnb/scripts/op-node-start.sh @@ -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 \