mirror of
https://github.com/logos-messaging/logos-messaging-simulator.git
synced 2026-01-02 14:03:07 +00:00
docker-compose update
This commit is contained in:
parent
30f801eb16
commit
fef00eb843
@ -95,9 +95,9 @@ services:
|
||||
- TOKEN_ADDRESS=${TOKEN_ADDRESS:-0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512}
|
||||
- PRIVATE_KEY=${PRIVATE_KEY}
|
||||
command:
|
||||
- '/opt/run_nwaku_loop_register_one_acc.sh'
|
||||
- '/opt/run_nwaku.sh'
|
||||
volumes:
|
||||
- ./run_nwaku_loop_register_one_acc.sh:/opt/run_nwaku_loop_register_one_acc.sh:Z
|
||||
- ./run_nwaku.sh:/opt/run_nwaku.sh:Z
|
||||
- privatekeys-volume:/shared
|
||||
init: true
|
||||
depends_on:
|
||||
|
||||
17
run_nwaku.sh
17
run_nwaku.sh
@ -90,13 +90,15 @@ get_private_key(){
|
||||
fi
|
||||
}
|
||||
|
||||
if test -f .$RLN_CREDENTIAL_PATH; then
|
||||
echo "$RLN_CREDENTIAL_PATH already exists. Use it instead of creating a new one."
|
||||
else
|
||||
private_key="$(get_private_key)"
|
||||
echo "Private key: $private_key"
|
||||
private_key="$(get_private_key)"
|
||||
echo "Private key: $private_key"
|
||||
|
||||
echo "Generating RLN keystore"
|
||||
GENERATE_TIMES=35
|
||||
echo "[1] Generating RLN keystore $GENERATE_TIMES time(s)..."
|
||||
|
||||
for iteration in $(seq 1 $GENERATE_TIMES); do
|
||||
|
||||
echo "Generating RLN keystore $iteration"
|
||||
/usr/bin/wakunode generateRlnKeystore \
|
||||
--rln-relay-eth-client-address="$RPC_URL" \
|
||||
--rln-relay-eth-private-key=$private_key \
|
||||
@ -107,7 +109,8 @@ else
|
||||
--rln-relay-epoch-sec=$RLN_RELAY_EPOCH_SEC \
|
||||
--log-level=DEBUG \
|
||||
--execute
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
echo "I am a nwaku node"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user