From 735e94ba8c89c2366e5270dc682cb9ed98c3b19f Mon Sep 17 00:00:00 2001 From: stubbsta Date: Wed, 13 Mar 2024 14:21:09 +0200 Subject: [PATCH] removed rpc related flags and added rest flags for sake of completeness, also updated BOOTSTRAP_ENR query --- run_bootstrap.sh | 8 +++++--- run_wakupublisher.sh | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/run_bootstrap.sh b/run_bootstrap.sh index 7eb09da..28c905b 100755 --- a/run_bootstrap.sh +++ b/run_bootstrap.sh @@ -6,15 +6,17 @@ echo "I am a bootstrap node" exec /usr/bin/wakunode\ --relay=true\ - --rpc-admin=true\ --keep-alive=true\ --max-connections=300\ --dns-discovery=true\ --discv5-discovery=true\ --discv5-enr-auto-update=True\ --log-level=INFO\ - --rpc-address=0.0.0.0\ --metrics-server=True\ --metrics-server-address=0.0.0.0\ --nodekey=30348dd51465150e04a5d9d932c72864c8967f806cce60b5d26afeca1e77eb68\ - --nat=extip:${IP} \ No newline at end of file + --nat=extip:${IP}\ + --rest=true\ + --rest-admin=true\ + --rest-private=true\ + --rest-address=0.0.0.0 \ No newline at end of file diff --git a/run_wakupublisher.sh b/run_wakupublisher.sh index 62c639e..538f534 100644 --- a/run_wakupublisher.sh +++ b/run_wakupublisher.sh @@ -7,7 +7,7 @@ echo "I am a traffic generator" RETRIES=${RETRIES:=10} while [ -z "${BOOTSTRAP_ENR}" ] && [ ${RETRIES} -ge 0 ]; do - BOOTSTRAP_ENR=$(wget -O - --post-data='{"jsonrpc":"2.0","method":"get_waku_v2_debug_v1_info","params":[],"id":1}' --header='Content-Type:application/json' http://bootstrap:8545/ 2> /dev/null | sed 's/.*"enrUri":"\([^"]*\)".*/\1/'); + BOOTSTRAP_ENR=$(wget -qO- http://bootstrap:8645/debug/v1/info --header='Content-Type:application/json' 2> /dev/null | sed 's/.*"enrUri":"\([^"]*\)".*/\1/'); echo "Bootstrap node not ready, retrying (retries left: ${RETRIES})" sleep 1 RETRIES=$(( $RETRIES - 1 ))