Various fixes

This commit is contained in:
Alejandro Cabeza Romero 2024-06-13 23:37:08 +02:00
parent 6d12804762
commit 146b71214e
No known key found for this signature in database
GPG Key ID: DA3D14AE478030FD
4 changed files with 14 additions and 2 deletions

0
deploy_rln_contract.sh Normal file → Executable file
View File

View File

@ -44,7 +44,7 @@ services:
command:
- '/opt/deploy_rln_contract.sh'
volumes:
- ./deploy_rln_contract.sh:/opt/deploy_rln_contract.sh
- ./deploy_rln_contract.sh:/opt/deploy_rln_contract.sh:Z
depends_on:
- foundry
networks:
@ -152,6 +152,7 @@ services:
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev:/dev
depends_on:
- redis
networks:
@ -203,6 +204,8 @@ services:
- api
networks:
- simulation
ports:
- 0.0.0.0:3000:3000
ingestion:
image: web3labs/epirus-free-ingestion:latest

5
inject_traffic.sh Executable file
View File

@ -0,0 +1,5 @@
docker run -it --network waku-simulator_simulation alrevuelta/rest-traffic:d936446 \
--delay-seconds=${TRAFFIC_DELAY_SECONDS:-10} \
--msg-size-kbytes=${MSG_SIZE_KBYTES:-5} \
--pubsub-topic=/waku/2/rs/66/0 \
--multiple-nodes="http://waku-simulator_nwaku_[1..${NUM_NWAKU_NODES:-5}]:8645"

View File

@ -81,6 +81,7 @@ get_private_key(){
current_index=1
for key in $private_keys
do
INDEX=`echo $INDEX | sed -n "1p" | awk '{print $1}'`
if [ $current_index -eq $INDEX ]; then
pk=$key
echo $key
@ -114,6 +115,9 @@ else
--execute
fi
echo $RLN_CREDENTIAL_PATH
ls -la /
ls -la $RLN_CREDENTIAL_PATH
echo "I am a nwaku node"
RETRIES=${RETRIES:=10}
@ -158,4 +162,4 @@ exec /usr/bin/wakunode\
--discv5-bootstrap-node=${BOOTSTRAP_ENR}\
--nat=extip:${IP}\
--pubsub-topic=/waku/2/rs/66/0\
--cluster-id=66
--cluster-id=66