Last active
May 31, 2020 13:12
-
-
Save zmanian/ea4bd280dc5c59867a2987bce523f87d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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