Skip to content

Instantly share code, notes, and snippets.

@zmanian
Last active May 31, 2020 13:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save zmanian/ea4bd280dc5c59867a2987bce523f87d to your computer and use it in GitHub Desktop.
mkdir -p ~/gentxes
rm -f ~/gentxes/*.json
rm -f ~/.gaiad/config/gentx/*.json
rm -rf ~/.gaiacli
gaiacli config keyring-backend test
for valnum in 0 1 2 3 4 5; do
echo "*** valnum: $valnum"
cp ~/private_keys/val_$valnum.key ~/.gaiad/config/priv_validator_key.json
gaiacli keys add --recover val-${valnum}
gaiad gentx --keyring-backend test --name val-${valnum} --amount 100000000000stake
mv ~/.gaiad/config/gentx/*.json ~/gentxes/genx-val-${valnum}.json
done
cp ~/gentxes/*.json ~/.gaiad/config/gentx/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment