Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: set lower tally params for localnet #3067

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions contrib/localnet/scripts/start-zetacored.sh
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,13 @@ then
echo "Importing data"
zetacored parse-genesis-file /root/genesis_data/exported-genesis.json
fi
# Update governance voting period to 100s , to ignore the voting period imported from mainnet.
cat $HOME/.zetacored/config/genesis.json | jq '.app_state["gov"]["voting_params"]["voting_period"]="100s"' > $HOME/.zetacored/config/tmp_genesis.json && mv $HOME/.zetacored/config/tmp_genesis.json $HOME/.zetacored/config/genesis.json

# Update governance voting parameters for localnet
# this allows for quick upgrades and using more than two nodes
jq '.app_state["gov"]["params"]["voting_period"]="100s" |
.app_state["gov"]["params"]["quorum"]="0.1" |
.app_state["gov"]["params"]["threshold"]="0.1"' \
$HOME/.zetacored/config/genesis.json > tmp.json && mv tmp.json $HOME/.zetacored/config/genesis.json

# 4. Collect all the gentx files in zetacore0 and create the final genesis.json
zetacored collect-gentxs
Expand Down
Loading