Skip to content

Commit

Permalink
Use the same validator mnemonic every time we generate a new genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Feb 25, 2024
1 parent 53141dc commit 0001263
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/scripts/setup_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ echo "Setting up validator ..."
if ! noisd keys show validator_key_1 2>/dev/null; then
echo "Validator does not yet exist. Creating it ..."
(
# Constant key to get the same validator operator address (noisvaloper1...) every time
echo "setup street come illness bargain kitchen current lend critic drop vivid bronze"
echo "$PASSWORD"
echo "$PASSWORD"
) | noisd keys add validator_key_1
) | noisd keys add validator_key_1 --recover
fi
# hardcode the validator account for this instance
echo "$PASSWORD" | noisd genesis add-genesis-account validator_key_1 "$START_BALANCE"
Expand Down

0 comments on commit 0001263

Please sign in to comment.