-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
feat: remove burning of deposits in gov #11011
Conversation
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.
This makes sense to me but maybe we'll want to pass this by one or two others. I think we'll need to update the specification as well to make the new behaviour clear.
x/gov/abci.go
Outdated
@@ -20,7 +20,7 @@ func EndBlocker(ctx sdk.Context, keeper keeper.Keeper) { | |||
// delete dead proposals from store and burn theirs deposits. A proposal is dead when it's inactive and didn't get enough deposit on time to get into voting phase. |
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.
need to update the comment here as well
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.
LGTM, this has imo been a bug for awhile.
gonna mark this as draft for a little as its not clear if this approach wants to be taken. |
@@ -20,7 +20,7 @@ func EndBlocker(ctx sdk.Context, keeper keeper.Keeper) { | |||
// delete dead proposals from store and burn theirs deposits. A proposal is dead when it's inactive and didn't get enough deposit on time to get into voting phase. | |||
keeper.IterateInactiveProposalsQueue(ctx, ctx.BlockHeader().Time, func(proposal v1beta2.Proposal) bool { | |||
keeper.DeleteProposal(ctx, proposal.ProposalId) | |||
keeper.DeleteAndBurnDeposits(ctx, proposal.ProposalId) | |||
keeper.RefundAndDeleteDeposits(ctx, proposal.ProposalId) // refund deposit if proposal got removed without getting 100% of the proposal |
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.
Let's add a state-machine breaking changelog
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.
LGTM, pending changelog
Also, there's an out-of-gas error in sims, we might need to bump tx fees somewhere. |
do we need a gov proposal to revert this since we had one to make the change https://hubble.figment.io/cosmos/chains/cosmoshub-2/governance/proposals/6 |
this bug was non-determinism in the non-determinism test. I can't reproduce locally and cli seems to not be able to reproduce. |
I think this shouldn't be merged - there was no consensus in the issue. |
deposit burn behaviour was changed in cosmos/cosmos-sdk#11011
* burn deposit documentation update deposit burn behaviour was changed in cosmos/cosmos-sdk#11011 * Update docs/governance/process.md
* burn deposit documentation update deposit burn behaviour was changed in cosmos/cosmos-sdk#11011 * Update docs/governance/process.md
Description
Closes: #11010
only burn deposits on veto'd proposals/
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change