mirror of
https://github.com/logos-messaging/logos-messaging-simulator.git
synced 2026-01-04 06:53:08 +00:00
removed rpc flags, added cred-path and -password
This commit is contained in:
parent
735e94ba8c
commit
baef6d5431
@ -33,7 +33,7 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -f ./$RLN_CREDENTIAL_PATH; then
|
if test -f .$RLN_CREDENTIAL_PATH; then
|
||||||
echo "$RLN_CREDENTIAL_PATH already exists. Use it instead of creating a new one."
|
echo "$RLN_CREDENTIAL_PATH already exists. Use it instead of creating a new one."
|
||||||
else
|
else
|
||||||
/usr/bin/wakunode generateRlnKeystore \
|
/usr/bin/wakunode generateRlnKeystore \
|
||||||
@ -59,7 +59,7 @@ echo "NODE_INDEX $NODE_INDEX"
|
|||||||
RETRIES=${RETRIES:=10}
|
RETRIES=${RETRIES:=10}
|
||||||
|
|
||||||
while [ -z "${BOOTSTRAP_ENR}" ] && [ ${RETRIES} -ge 0 ]; do
|
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})"
|
echo "Bootstrap node not ready, retrying (retries left: ${RETRIES})"
|
||||||
sleep 1
|
sleep 1
|
||||||
RETRIES=$(( $RETRIES - 1 ))
|
RETRIES=$(( $RETRIES - 1 ))
|
||||||
@ -73,9 +73,7 @@ fi
|
|||||||
echo "Using bootstrap node: ${BOOTSTRAP_ENR}"
|
echo "Using bootstrap node: ${BOOTSTRAP_ENR}"
|
||||||
exec /usr/bin/wakunode\
|
exec /usr/bin/wakunode\
|
||||||
--relay=true\
|
--relay=true\
|
||||||
--rpc-admin=true\
|
|
||||||
--max-connections=250\
|
--max-connections=250\
|
||||||
--rpc-address=0.0.0.0\
|
|
||||||
--rest=true\
|
--rest=true\
|
||||||
--rest-admin=true\
|
--rest-admin=true\
|
||||||
--rest-private=true\
|
--rest-private=true\
|
||||||
@ -84,11 +82,12 @@ exec /usr/bin/wakunode\
|
|||||||
--rln-relay-dynamic=true\
|
--rln-relay-dynamic=true\
|
||||||
--rln-relay-eth-client-address="$RPC_URL"\
|
--rln-relay-eth-client-address="$RPC_URL"\
|
||||||
--rln-relay-eth-contract-address=$RLN_CONTRACT_ADDRESS\
|
--rln-relay-eth-contract-address=$RLN_CONTRACT_ADDRESS\
|
||||||
|
--rln-relay-cred-path=$RLN_CREDENTIAL_PATH\
|
||||||
|
--rln-relay-cred-password=$RLN_CREDENTIAL_PASSWORD\
|
||||||
--dns-discovery=true\
|
--dns-discovery=true\
|
||||||
--discv5-discovery=true\
|
--discv5-discovery=true\
|
||||||
--discv5-enr-auto-update=True\
|
--discv5-enr-auto-update=True\
|
||||||
--log-level=DEBUG\
|
--log-level=DEBUG\
|
||||||
--rpc-address=0.0.0.0\
|
|
||||||
--metrics-server=True\
|
--metrics-server=True\
|
||||||
--metrics-server-address=0.0.0.0\
|
--metrics-server-address=0.0.0.0\
|
||||||
--discv5-bootstrap-node=${BOOTSTRAP_ENR}\
|
--discv5-bootstrap-node=${BOOTSTRAP_ENR}\
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user