docker-compose update

This commit is contained in:
stubbsta 2025-11-18 18:08:02 +02:00
parent 30f801eb16
commit fef00eb843
No known key found for this signature in database
2 changed files with 12 additions and 9 deletions

View File

@ -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:

View File

@ -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"