-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·20 lines (19 loc) · 1.03 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
make build
binary=./build/cosmappd
home=$HOME/.cosmappd
rm -rf ~/.cosmappd
$binary init liveness --chain-id cosmos-1 --default-denom uatom --home $home
$binary config set client chain-id cosmos-1 --home $home
$binary config set client keyring-backend test --home $home
$binary keys add val1 --home $home
$binary keys add alice --home $home
$binary keys add bob --home $home
$binary genesis add-genesis-account val1 10000000000000000000000000uatom --home $home
$binary genesis add-genesis-account alice 1000000000000000000uatom --home $home
$binary genesis add-genesis-account bob 1000000000000000000uatom --home $home
$binary genesis gentx val1 1000000000uatom --chain-id cosmos-1 --home $home
$binary genesis collect-gentxs --home $home
sed -i.bak'' 's/minimum-gas-prices = ""/minimum-gas-prices = "0.025uatom"/' $home/config/app.toml
jq '.consensus.params.abci.vote_extensions_enable_height = "2"' ~/.cosmappd/config/genesis.json > output.json && mv output.json ~/.cosmappd/config/genesis.json
$binary start --val-key val1 --run-provider true