2020-03-04 19:16:27 +00:00
|
|
|
package committee
|
|
|
|
|
2020-03-12 17:05:40 +00:00
|
|
|
import (
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
2020-04-30 14:23:41 +00:00
|
|
|
|
2020-03-12 17:05:40 +00:00
|
|
|
abci "github.com/tendermint/tendermint/abci/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
// BeginBlocker runs at the start of every block.
|
|
|
|
func BeginBlocker(ctx sdk.Context, _ abci.RequestBeginBlock, k Keeper) {
|
2020-05-15 19:25:49 +00:00
|
|
|
// enact proposals ignoring their expiry time - they could have received enough votes last block before expiring this block
|
|
|
|
k.EnactPassedProposals(ctx)
|
2020-04-24 22:15:51 +00:00
|
|
|
k.CloseExpiredProposals(ctx)
|
2020-03-12 17:05:40 +00:00
|
|
|
}
|