Skip to content

Commit

Permalink
Replace L1 RPC by ENGINE
Browse files Browse the repository at this point in the history
  • Loading branch information
dsimog01 committed Aug 24, 2023
1 parent 39f3073 commit 55e03f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ services:
L2_CLIENT: op-geth.dnp.dappnode.eth
USER_JWT: ""
restart: unless-stopped
image: "geth.op-node.dnp.dappnode.eth:0.1.0"
12 changes: 6 additions & 6 deletions op-node/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,26 @@ esac

case $L2_CLIENT in
"op-geth.dnp.dappnode.eth")
L2_RPC="http://op-geth.dnp.dappnode:8545"
L2_ENGINE="http://op-geth.dnp.dappnode:8551"
JWT_PATH="/config/security/op-geth/jwtsecret.hex"
;;
"op-erigon.dnp.dappnode.eth")
L2_RPC="http://op-erigon.dnp.dappnode:8545"
L2_ENGINE="http://op-erigon.dnp.dappnode:8551"
JWT_PATH="/config/security/op-erigon/jwtsecret.hex"
;;
*)
echo "Unknown value for L2_CLIENT: $L2_CLIENT"
L2_RPC=$L2_CLIENT
L2_ENGINE=$L2_CLIENT
mkdir -p /config/security/user
echo $USER_JWT >/config/security/user/jwtsecret.hex
JWT_PATH="/config/security/user/jwtsecret.hex"
;;
esac

op-node --l1=$L1_RPC \
--l2=$L2_RPC \
--network=beta-1 \
--l2=$L2_ENGINE \
--l2.jwt-secret=$JWT_PATH \
--network=mainnet \
--rpc.addr=0.0.0.0 \
--rpc.port=9545 \
--l2.jwt-secret=$JWT_PATH \
${EXTRA_FLAGS}

0 comments on commit 55e03f2

Please sign in to comment.