More changes

This commit is contained in:
alrevuelta 2023-08-11 14:05:14 +00:00
parent 28855b724a
commit 34c1632ac5
3 changed files with 29 additions and 4 deletions

View File

@ -37,4 +37,5 @@ exec /usr/bin/wakunode\
--rln-relay-cred-password=password \
--rln-relay-cred-path=/rlnKeystore.json \
--rln-relay-eth-contract-address=0x39558059411112732d73997712b75a865a697330 \
--rln-relay-eth-client-address=wss://sepolia.infura.io/ws/v3/4576482c0f474483ac709755f2663b20 \
--rln-relay-eth-client-address=ws://linux-01.ih-eu-mda1.nimbus.sepolia.wg:9557
#--rln-relay-eth-client-address=wss://sepolia.infura.io/ws/v3/4576482c0f474483ac709755f2663b20 \

24
run_test.sh Normal file
View File

@ -0,0 +1,24 @@
#!/bin/sh
IP=$(ip a | grep "inet " | grep -Fv 127.0.0.1 | sed 's/.*inet \([^/]*\).*/\1/')
echo "I testdiscv5 node"
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/');
echo "Bootstrap node not ready, retrying (retries left: ${RETRIES})"
sleep 1
RETRIES=$(( $RETRIES - 1 ))
done
if [ -z "${BOOTSTRAP_ENR}" ]; then
echo "Could not get BOOTSTRAP_ENR and none provided. Failing"
exit 1
fi
echo "Using bootstrap node: ${BOOTSTRAP_ENR}"
exec /usr/bin/discv5\
--bootnodes=${BOOTSTRAP_ENR}
#--bootnodes="enr:-M-4QLOTEs_ZFxCb09FgIezZd5KeTru5CWWyEtMWMN-yUABrerWxckU-pMIh3yO8VjxHpgZ4jU2WSXuK3goW4uYb6c4BgmlkgnY0gmlwhI_G-a6KbXVsdGlhZGRyc7EALzYobm9kZS0wMS5kby1hbXMzLnN0YXR1cy5wcm9kLnN0YXR1c2ltLm5ldAYBu94DiXNlY3AyNTZrMaECoVyonsTGEQvVioM562Q1fjzTb_vKD152PPIdsV7sM6SDdGNwgnZfg3VkcIIjKIV3YWt1MgM"\

View File

@ -21,8 +21,8 @@ fi
echo "Using bootstrap node: ${BOOTSTRAP_ENR}"
exec /main\
--pubsub-topic="/waku/2/default-waku/proto"\
--content-topic="my-ctopic"\
--msg-per-second=${MSG_PER_SECOND}\
--msg-size-kb=${MSG_SIZE_KBYTES}\
--content-topic="/toy-chat/3/mingde/proto"\
--msg-per-second=200\
--msg-size-kb=2\
--bootstrap-node=${BOOTSTRAP_ENR}\
--max-peers=50