diff --git a/run_nwaku.sh b/run_nwaku.sh index ef259d0..40cc1d7 100755 --- a/run_nwaku.sh +++ b/run_nwaku.sh @@ -2,7 +2,7 @@ IP=$(ip a | grep "inet " | grep -Fv 127.0.0.1 | sed 's/.*inet \([^/]*\).*/\1/') -echo "My container name is: $HOSTNAME" +echo "I am a nwaku node" # Get an unique node index based on the container's IP FOURTH_OCTET=${IP##*.} @@ -10,8 +10,6 @@ THIRD_OCTET="${IP%.*}"; THIRD_OCTET="${THIRD_OCTET##*.}" NODE_INDEX=$((FOURTH_OCTET + 256 * THIRD_OCTET)) echo "NODE_INDEX $NODE_INDEX" -echo "$IP" - RETRIES=${RETRIES:=10} diff --git a/traffic.py b/traffic.py index e674d12..c80c6df 100644 --- a/traffic.py +++ b/traffic.py @@ -32,7 +32,6 @@ def send_waku_msg(node_address, kbytes, pubsub_topic, content_topic): try: print("Sending request") response = requests.post(url, json=body, headers=headers) - print("Got response", response) except Exception as e: print(f"Error sending request: {e}")