Skip to content

Commit

Permalink
[DEC-2155] Set gov.params.min_initial_deposit_ratio to 0.2 to avoid…
Browse files Browse the repository at this point in the history
… spamming (backport #670) (#680)

* [DEC-2155] Set `gov.params.min_initial_deposit_ratio` to 0.2 to avoid spamming (#670)

* use 0.20 to avoid spam

* run make

* manually remove null values

* update testnet-external/pregenesis.sh

* apply to dev/staging genesis

(cherry picked from commit 98464cb)

# Conflicts:
#	protocol/testing/testnet-external/pregenesis.sh

* resolve merge conflict

---------

Co-authored-by: ttl33 <19664986+ttl33@users.noreply.github.com>
  • Loading branch information
mergify[bot] and ttl33 committed Oct 20, 2023
1 parent 0516d34 commit bd3ff30
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions protocol/scripts/genesis/prod_pregenesis.sh
Expand Up @@ -107,6 +107,7 @@ function overwrite_genesis_production() {
dasel put -t string -f "$GENESIS" '.app_state.gov.params.quorum' -v '0.33400' # 33.4%
dasel put -t string -f "$GENESIS" '.app_state.gov.params.threshold' -v '0.50000' # 50%
dasel put -t string -f "$GENESIS" '.app_state.gov.params.veto_threshold' -v '0.33400' # 33.4%
dasel put -t string -f "$GENESIS" '.app_state.gov.params.min_initial_deposit_ratio' -v '0.20000' # 20%
dasel put -t bool -f "$GENESIS" '.app_state.gov.params.burn_proposal_deposit_prevote' -v 'false'
dasel put -t bool -f "$GENESIS" '.app_state.gov.params.burn_vote_quorum' -v 'false'
dasel put -t bool -f "$GENESIS" '.app_state.gov.params.burn_vote_veto' -v 'true'
Expand Down
2 changes: 1 addition & 1 deletion protocol/scripts/genesis/sample_pregenesis.json
Expand Up @@ -766,7 +766,7 @@
"denom": "asample"
}
],
"min_initial_deposit_ratio": "0.000000000000000000",
"min_initial_deposit_ratio": "0.20000",
"quorum": "0.33400",
"threshold": "0.50000",
"veto_threshold": "0.33400",
Expand Down
4 changes: 3 additions & 1 deletion protocol/testing/genesis.sh
Expand Up @@ -73,7 +73,9 @@ function edit_genesis() {
# reduced deposit period
dasel put -t string -f "$GENESIS" '.app_state.gov.params.max_deposit_period' -v '300s'
# reduced voting period
dasel put -t string -f "$GENESIS" '.app_state.gov.params.voting_period' -v '300s'
dasel put -t string -f "$GENESIS" '.app_state.gov.params.voting_period' -v '300s'
# set initial deposit ratio to prevent spamming
dasel put -t string -f "$GENESIS" '.app_state.gov.params.min_initial_deposit_ratio' -v '0.20000' # 20%

# Update staking module.
dasel put -t string -f "$GENESIS" '.app_state.staking.params.unbonding_time' -v '1814400s' # 21 days
Expand Down
5 changes: 1 addition & 4 deletions protocol/testing/testnet-external/pregenesis.sh
Expand Up @@ -163,10 +163,7 @@ function overwrite_genesis_public_testnet() {
dasel put -t string -f "$GENESIS" '.app_state.gov.params.quorum' -v '0.33400' # 33.4%
dasel put -t string -f "$GENESIS" '.app_state.gov.params.threshold' -v '0.50000' # 50%
dasel put -t string -f "$GENESIS" '.app_state.gov.params.veto_threshold' -v '0.33400' # 33.4%

# Consensus params
dasel put -t string -f "$GENESIS" '.consensus_params.block.max_bytes' -v '22020096'
dasel put -t string -f "$GENESIS" '.consensus_params.block.max_gas' -v '-1'
dasel put -t string -f "$GENESIS" '.app_state.gov.params.min_initial_deposit_ratio' -v '0.20000' # 20%
}

create_pregenesis_file() {
Expand Down

0 comments on commit bd3ff30

Please sign in to comment.