diff --git a/.env.goerli b/.env.goerli index cee1586..10ad685 100644 --- a/.env.goerli +++ b/.env.goerli @@ -11,7 +11,7 @@ OP_NODE_L1_ETH_RPC=https://ethereum-goerli-rpc.allthatnode.com OP_NODE_L2_ENGINE_AUTH_RAW=688f5d737bad920bdfb2fc2f488d6b6209eebda1dae949a8de91398d932c517a OP_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt -OP_NODE_L2_ENGINE_RPC=http://geth:8551 +OP_NODE_L2_ENGINE_RPC=ws://geth:8551 OP_NODE_LOG_LEVEL=info OP_NODE_METRICS_ADDR=0.0.0.0 OP_NODE_METRICS_ENABLED=true diff --git a/.env.mainnet b/.env.mainnet index 6d5c686..b2b91f1 100644 --- a/.env.mainnet +++ b/.env.mainnet @@ -11,7 +11,7 @@ OP_NODE_L1_ETH_RPC=https://1rpc.io/eth OP_NODE_L2_ENGINE_AUTH_RAW=688f5d737bad920bdfb2fc2f488d6b6209eebda1dae949a8de91398d932c517a OP_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt -OP_NODE_L2_ENGINE_RPC=http://geth:8551 +OP_NODE_L2_ENGINE_RPC=ws://geth:8551 OP_NODE_LOG_LEVEL=info OP_NODE_METRICS_ADDR=0.0.0.0 OP_NODE_METRICS_ENABLED=true diff --git a/.env.sepolia b/.env.sepolia index f466490..e453178 100644 --- a/.env.sepolia +++ b/.env.sepolia @@ -11,7 +11,7 @@ OP_NODE_L1_ETH_RPC=https://rpc.sepolia.org OP_NODE_L2_ENGINE_AUTH_RAW=688f5d737bad920bdfb2fc2f488d6b6209eebda1dae949a8de91398d932c517a OP_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt -OP_NODE_L2_ENGINE_RPC=http://geth:8551 +OP_NODE_L2_ENGINE_RPC=ws://geth:8551 OP_NODE_LOG_LEVEL=info OP_NODE_METRICS_ADDR=0.0.0.0 OP_NODE_METRICS_ENABLED=true diff --git a/op-node-entrypoint b/op-node-entrypoint index 98a4b23..8c61b4f 100755 --- a/op-node-entrypoint +++ b/op-node-entrypoint @@ -2,7 +2,7 @@ set -eu # wait until local geth comes up (authed so will return 401 without token) -until [ "$(curl -s -w '%{http_code}' -o /dev/null "$OP_NODE_L2_ENGINE_RPC")" -eq 401 ]; do +until [ "$(curl -s -w '%{http_code}' -o /dev/null "${OP_NODE_L2_ENGINE_RPC//ws/http}")" -eq 401 ]; do echo "waiting for geth to be ready" sleep 5 done