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

fix(group)!: Fix group min execution period #13876

Merged
merged 12 commits into from
Nov 16, 2022
Prev Previous commit
Next Next commit
Merge branch 'main' of ssh://github.com/cosmos/cosmos-sdk into am/fix…
…-group
  • Loading branch information
amaury1093 committed Nov 16, 2022
commit 0d123fcb85f02a93144a92a0fe9281d78d3e4eb6
4 changes: 4 additions & 0 deletions x/group/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,10 @@ func (k Keeper) doTallyAndUpdate(ctx sdk.Context, p *group.Proposal, electorate
}

result, err := policy.Allow(tallyResult, electorate.TotalWeight)
if err != nil {
return sdkerrors.Wrap(err, "policy allow")
}

// If the result was final (i.e. enough votes to pass) or if the voting
// period ended, then we consider the proposal as final.
if isFinal := result.Final || ctx.BlockTime().After(p.VotingPeriodEnd); isFinal {
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.