@@ -13,20 +13,24 @@ if [ -z "$2" ]; then
1313 exit 1
1414fi
1515
16+ # Clean up previous data
17+ rm -rf ~ /.akash
18+
1619# Build genesis file incl account for passed address
17- coins=" 10000000000uakt "
18- akash init --chain-id " $CHAINID " " $CHAINID "
20+ coins=" 100000000000uakt "
21+ akash genesis init " $CHAINID " --chain-id " $CHAINID "
1922akash keys add validator --keyring-backend=" test"
20- akash add- genesis-account " $( akash keys show validator -a --keyring-backend=" test" ) " $coins
21- akash add- genesis-account " $GENACCT " $coins
22- akash gentx validator 10000000000uakt --keyring-backend=" test" --chain-id " $CHAINID "
23- akash collect-gentxs
23+ akash genesis add -account " $( akash keys show validator -a --keyring-backend=" test" ) " $coins
24+ akash genesis add -account " $GENACCT " $coins
25+ akash genesis gentx validator 10000000000uakt --keyring-backend=" test" --chain-id " $CHAINID " --min-self-delegation= " 1 "
26+ akash genesis collect
2427
2528# Set proper defaults and change ports
26- sed -i ' s#"tcp://127.0.0.1:26657"#"tcp://0.0.0.0:26657"#g' ~ /.akash/config/config.toml
27- sed -i ' s/timeout_commit = "5s"/timeout_commit = "1s"/g' ~ /.akash/config/config.toml
28- sed -i ' s/timeout_propose = "3s"/timeout_propose = "1s"/g' ~ /.akash/config/config.toml
29- sed -i ' s/index_all_keys = false/index_all_keys = true/g' ~ /.akash/config/config.toml
29+ sed -i.bak ' s#"tcp://127.0.0.1:26657"#"tcp://0.0.0.0:26657"#g' ~ /.akash/config/config.toml
30+ sed -i.bak ' s/timeout_commit = "5s"/timeout_commit = "1s"/g' ~ /.akash/config/config.toml
31+ sed -i.bak ' s/timeout_propose = "3s"/timeout_propose = "1s"/g' ~ /.akash/config/config.toml
32+ sed -i.bak ' s/index_all_keys = false/index_all_keys = true/g' ~ /.akash/config/config.toml
33+ rm -f ~ /.akash/config/config.toml.bak
3034
3135# Start the akash
32- akash start --pruning=nothing
36+ akash start --pruning=nothing
0 commit comments