From 578017193ce6ccfa5870d5e9c4978906b758ad2d Mon Sep 17 00:00:00 2001 From: mingming Date: Sat, 23 May 2026 00:29:03 +0800 Subject: [PATCH 1/2] Avoid unauthenticated Engine API readiness probe --- consensus-entrypoint | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/consensus-entrypoint b/consensus-entrypoint index 05b89467a..9bf7930b7 100755 --- a/consensus-entrypoint +++ b/consensus-entrypoint @@ -41,8 +41,11 @@ if [[ -z "${BASE_NODE_L2_ENGINE_AUTH_RAW:-}" ]]; then exit 1 fi -until [ "$(curl -s --max-time 10 --connect-timeout 5 -w '%{http_code}' -o /dev/null "${BASE_NODE_L2_ENGINE_RPC/ws/http}")" -eq 401 ]; do - echo "waiting for execution client to be ready" +until curl -s --max-time 10 --connect-timeout 5 \ + -H 'Content-Type: application/json' \ + -d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' \ + http://execution:8545 | grep -q '"result":"0x2105"'; do + echo "waiting for execution client RPC to be ready" sleep 5 done From 0890a4ddda70b069b7cf5eaba95cfd7de9063dfe Mon Sep 17 00:00:00 2001 From: mingming Date: Sat, 23 May 2026 00:48:49 +0800 Subject: [PATCH 2/2] Make execution RPC readiness check chain-agnostic --- consensus-entrypoint | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consensus-entrypoint b/consensus-entrypoint index 9bf7930b7..e9a60bdfe 100755 --- a/consensus-entrypoint +++ b/consensus-entrypoint @@ -41,10 +41,11 @@ if [[ -z "${BASE_NODE_L2_ENGINE_AUTH_RAW:-}" ]]; then exit 1 fi + until curl -s --max-time 10 --connect-timeout 5 \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' \ - http://execution:8545 | grep -q '"result":"0x2105"'; do + http://execution:8545 | grep -q '"result"'; do echo "waiting for execution client RPC to be ready" sleep 5 done