mirror of
https://github.com/logos-messaging/logos-messaging-simulator.git
synced 2026-01-05 23:43:11 +00:00
Various fixes
This commit is contained in:
parent
6d12804762
commit
146b71214e
0
deploy_rln_contract.sh
Normal file → Executable file
0
deploy_rln_contract.sh
Normal file → Executable file
@ -44,7 +44,7 @@ services:
|
|||||||
command:
|
command:
|
||||||
- '/opt/deploy_rln_contract.sh'
|
- '/opt/deploy_rln_contract.sh'
|
||||||
volumes:
|
volumes:
|
||||||
- ./deploy_rln_contract.sh:/opt/deploy_rln_contract.sh
|
- ./deploy_rln_contract.sh:/opt/deploy_rln_contract.sh:Z
|
||||||
depends_on:
|
depends_on:
|
||||||
- foundry
|
- foundry
|
||||||
networks:
|
networks:
|
||||||
@ -152,6 +152,7 @@ services:
|
|||||||
- /var/run:/var/run:rw
|
- /var/run:/var/run:rw
|
||||||
- /sys:/sys:ro
|
- /sys:/sys:ro
|
||||||
- /var/lib/docker/:/var/lib/docker:ro
|
- /var/lib/docker/:/var/lib/docker:ro
|
||||||
|
- /dev:/dev
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
networks:
|
networks:
|
||||||
@ -203,6 +204,8 @@ services:
|
|||||||
- api
|
- api
|
||||||
networks:
|
networks:
|
||||||
- simulation
|
- simulation
|
||||||
|
ports:
|
||||||
|
- 0.0.0.0:3000:3000
|
||||||
|
|
||||||
ingestion:
|
ingestion:
|
||||||
image: web3labs/epirus-free-ingestion:latest
|
image: web3labs/epirus-free-ingestion:latest
|
||||||
|
|||||||
5
inject_traffic.sh
Executable file
5
inject_traffic.sh
Executable 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"
|
||||||
@ -81,6 +81,7 @@ get_private_key(){
|
|||||||
current_index=1
|
current_index=1
|
||||||
for key in $private_keys
|
for key in $private_keys
|
||||||
do
|
do
|
||||||
|
INDEX=`echo $INDEX | sed -n "1p" | awk '{print $1}'`
|
||||||
if [ $current_index -eq $INDEX ]; then
|
if [ $current_index -eq $INDEX ]; then
|
||||||
pk=$key
|
pk=$key
|
||||||
echo $key
|
echo $key
|
||||||
@ -114,6 +115,9 @@ else
|
|||||||
--execute
|
--execute
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo $RLN_CREDENTIAL_PATH
|
||||||
|
ls -la /
|
||||||
|
ls -la $RLN_CREDENTIAL_PATH
|
||||||
echo "I am a nwaku node"
|
echo "I am a nwaku node"
|
||||||
|
|
||||||
RETRIES=${RETRIES:=10}
|
RETRIES=${RETRIES:=10}
|
||||||
@ -158,4 +162,4 @@ exec /usr/bin/wakunode\
|
|||||||
--discv5-bootstrap-node=${BOOTSTRAP_ENR}\
|
--discv5-bootstrap-node=${BOOTSTRAP_ENR}\
|
||||||
--nat=extip:${IP}\
|
--nat=extip:${IP}\
|
||||||
--pubsub-topic=/waku/2/rs/66/0\
|
--pubsub-topic=/waku/2/rs/66/0\
|
||||||
--cluster-id=66
|
--cluster-id=66
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user