-
Notifications
You must be signed in to change notification settings - Fork 83
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
[DEC-2155] Set gov.params.min_initial_deposit_ratio
to 0.2 to avoid spamming
#670
Conversation
WalkthroughThe changes primarily involve the modification of genesis parameters across different environments (production, public testnet, and other testing environments). The Changes
TipsChat with CodeRabbit Bot (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Files selected for processing (2)
- protocol/scripts/genesis/prod_pregenesis.sh (1 hunks)
- protocol/testing/genesis.sh (1 hunks)
Files skipped from review due to trivial changes (1)
- protocol/testing/genesis.sh
Additional comments (Suppressed): 1
protocol/scripts/genesis/prod_pregenesis.sh (1)
- 110-110: The new line introduces a
min_initial_deposit_ratio
parameter set to 20%. This change is intended to mitigate the issue of government proposal spamming by requiring a minimum initial deposit ratio of 20% to create a government proposal. Ensure that this change aligns with the overall system design and does not inadvertently affect other parts of the system.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Files ignored due to filter (1)
- protocol/scripts/genesis/sample_pregenesis.json
Files selected for processing (1)
- protocol/testing/testnet-external/pregenesis.sh (1 hunks)
Additional comments (Suppressed): 1
protocol/testing/testnet-external/pregenesis.sh (1)
- 161-164: The new hunk introduces a change to the
min_initial_deposit_ratio
parameter in the genesis file, setting it to 20%. This change is in line with the PR's goal of mitigating government proposal spamming. However, it's important to verify that this change doesn't negatively impact the proposal creation process, especially for legitimate proposals. Also, ensure that this change is communicated to all relevant stakeholders, as it may affect their interactions with the system.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Files selected for processing (1)
- protocol/testing/genesis.sh (1 hunks)
Additional comments (Suppressed): 1
protocol/testing/genesis.sh (1)
- 82-87: The changes made to the
max_deposit_period
,voting_period
, andmin_initial_deposit_ratio
parameters are consistent with the PR summary. However, ensure that these changes are compatible with the rest of the system and that they do not negatively impact the user experience or the system's performance. Also, verify that the newmin_initial_deposit_ratio
of 0.2 (20%) is an appropriate value to prevent spamming without hindering legitimate users.
@Mergifyio backport release/protocol/v1.x |
✅ Backports have been created
|
… 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>
Changelist
gov.params.min_initial_deposit_ratio
to 0.2 (=20%) to avoid gov proposal spamming.make update-sample-pregenesis
Test Plan
N/A
Author/Reviewer Checklist
state-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.