Skip to content

Commit

Permalink
emergency poll still need to be tallyed at normal schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Nov 10, 2024
1 parent f7a3f0e commit b85dec9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions x/gov/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,6 @@ func EndBlocker(ctx sdk.Context, k *keeper.Keeper) error {
return false, err
}

// emergency proposals are handled separately
if proposal.Emergency {
return false, nil
}

_, passed, burnDeposits, tallyResults, err := k.Tally(ctx, params, proposal)
if err != nil {
return false, err
Expand Down Expand Up @@ -185,6 +180,7 @@ func EndBlocker(ctx sdk.Context, k *keeper.Keeper) error {
return false, err
}

// quorum not reached; schedule the next tally
if !quorumReached {
nextTallyTime := ctx.BlockTime().Add(params.EmergencyTallyInterval)
if err = k.EmergencyProposalsQueue.Set(ctx, collections.Join(nextTallyTime, proposal.Id), proposal.Id); err != nil {
Expand Down

0 comments on commit b85dec9

Please sign in to comment.