From 391f989d850ce2855bc830735685758774e3c63f Mon Sep 17 00:00:00 2001 From: Michael de Hoog Date: Thu, 5 Oct 2023 08:31:23 -1000 Subject: [PATCH] Switch engine API to use ws instead of http (#119) --- .env.goerli | 2 +- .env.mainnet | 2 +- .env.sepolia | 2 +- op-node-entrypoint | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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