-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3932b1
commit 54038a9
Showing
6 changed files
with
64 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
ROOT=$PWD | ||
SIMD="go run ./simd/main.go" | ||
|
||
cd simapp | ||
$SIMD init aurn-node --chain-id aurn-chain | ||
|
||
cd ~/.simapp/config | ||
|
||
# to enable the api server | ||
sed -i '.bak' '/\[api\]/,+3 s/enable = false/enable = true/' app.toml | ||
|
||
# to change the voting_period | ||
jq '.app_state.gov.voting_params.voting_period = "600s"' genesis.json > temp.json && mv temp.json genesis.json | ||
|
||
# to change the inflation | ||
jq '.app_state.mint.minter.inflation = "0.300000000000000000"' genesis.json > temp.json && mv temp.json genesis.json | ||
|
||
cd "$ROOT"/simapp | ||
$SIMD keys add test_validator --keyring-backend test | ||
VALIDATOR_ADDRESS=$($SIMD keys show test_validator -a --keyring-backend test) | ||
|
||
$SIMD genesis add-genesis-account "$VALIDATOR_ADDRESS" 1000000000stake | ||
$SIMD genesis gentx test_validator 1000000000stake --keyring-backend test | ||
$SIMD genesis collect-gentxs |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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