Skip to content

Commit

Permalink
fix: fixing the localnet script to correctly set gov params post sdk …
Browse files Browse the repository at this point in the history
…v47 (#566)
  • Loading branch information
spoo-bar authored May 23, 2024
1 parent c5dcaa3 commit 5f2bde7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ publish proto files to buf.build
- [#570](https://github.com/archway-network/archway/pull/570) - Fix the Docker.deprecated file to build
- [#569](https://github.com/archway-network/archway/pull/569) - Audit remidiations for x/cwerrors and x/cwica

- [#566](https://github.com/archway-network/archway/pull/566) - Fixing the localnet script to correctly set gov params post sdk v47

### Improvements

- [#567](https://github.com/archway-network/archway/pull/567) - Remove redundant params fetching in SaveCallback
Expand Down
6 changes: 3 additions & 3 deletions scripts/localnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ setup_chain () {
genesis="$CHAIN_DIR/$CHAIN_ID/config/genesis.json"
# x/gov params change
# reduce voting period to 2 minutes
contents="$(jq '.app_state.gov.voting_params.voting_period = "120s"' $genesis)" && echo "${contents}" > $genesis
contents="$(jq '.app_state.gov.params.voting_period = "120s"' $genesis)" && echo "${contents}" > $genesis
echo_info "Set x/gov voting period to 120 seconds"
# reduce minimum deposit amount to 10stake
contents="$(jq '.app_state.gov.deposit_params.min_deposit[0].amount = "10"' $genesis)" && echo "${contents}" > $genesis
contents="$(jq '.app_state.gov.params.min_deposit[0].amount = "10"' $genesis)" && echo "${contents}" > $genesis
echo_info "Set x/gov proposal min deposit amount to 10 stake"
# reduce deposit period to 20seconds
contents="$(jq '.app_state.gov.deposit_params.max_deposit_period = "20s"' $genesis)" && echo "${contents}" > $genesis
contents="$(jq '.app_state.gov.params.max_deposit_period = "20s"' $genesis)" && echo "${contents}" > $genesis
echo_info "Set x/gov proposal max deposit period to 20 seconds"


Expand Down

0 comments on commit 5f2bde7

Please sign in to comment.