forked from cosmic-horizon/QWOYN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start51.sh
31 lines (25 loc) · 1.85 KB
/
start51.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
rm -rf ~/.qwoynd
echo "silly slab oxygen reflect hawk wasp peace omit carbon pause turkey organ relax sing youth since fence increase record thing trial alien render begin" > validator.txt
echo "weather leader certain hard busy blouse click patient balcony return elephant hire mule gather danger curious visual boy estate army marine cinnamon snake flight" > mnemonic.txt;
echo "never chuckle bird almost jacket veteran weekend original rare habit point scorpion place gadget net train more plug upon pear renew mule material dynamic" > mnemonic2.txt;
# Build genesis
qwoynd51 init --chain-id=qwoyn-1 test
qwoynd51 keys add validator --keyring-backend="test" < validator.txt;
qwoynd51 keys add maintainer --recover --keyring-backend=test < mnemonic.txt;
qwoynd51 keys add user1 --recover --keyring-backend=test < mnemonic2.txt;
VALIDATOR=$(qwoynd51 keys show validator -a --keyring-backend="test")
MAINTAINER=$(qwoynd51 keys show maintainer -a --keyring-backend="test")
USER1=$(qwoynd51 keys show user1 -a --keyring-backend="test")
# VALIDATOR=qwoyn1hzqg4r2e789930hs88wqle25ef94xajuqay93r
# MAINTAINER=qwoyn1h9krsew6kpg9huzcqgmgmns0n48jx9yd5vr0n5
# USER1=qwoyn13tqzdukugulllnk3p5js3w7hzw8gclkeenzp6e
qwoynd51 genesis add-genesis-account $VALIDATOR 1000000000000uqwoyn,1000000000000ucoho,1000000000000stake
qwoynd51 genesis add-genesis-account $MAINTAINER 1000000000000uqwoyn,1000000000000ucoho,1000000000000stake
qwoynd51 genesis add-genesis-account $USER1 1000000000000uqwoyn,1000000000000ucoho,1000000000000stake
qwoynd51 genesis gentx validator 100000000stake --keyring-backend="test" --chain-id=qwoyn-1
qwoynd51 genesis collect-gentxs
sed -i '' 's/"voting_period": "172800s"/"voting_period": "20s"/g' $HOME/.qwoynd/config/genesis.json
# sed -i 's/stake/uqwoyn/g' $HOME/.qwoynd/config/genesis.json
# Start node
qwoynd51 start --pruning=nothing --minimum-gas-prices="0stake"