mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-25 15:55:18 +00:00
bfb9f7e20a
* cleanup begin/end block * update cdp BeginBlocker * update dist mint * fix tests * typo * add comment on CloseExpiredAuctions * fix tests
15 lines
435 B
Go
15 lines
435 B
Go
package committee
|
|
|
|
import (
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
abci "github.com/tendermint/tendermint/abci/types"
|
|
)
|
|
|
|
// BeginBlocker runs at the start of every block.
|
|
func BeginBlocker(ctx sdk.Context, _ abci.RequestBeginBlock, k Keeper) {
|
|
// enact proposals ignoring their expiry time - they could have received enough votes last block before expiring this block
|
|
k.EnactPassedProposals(ctx)
|
|
k.CloseExpiredProposals(ctx)
|
|
}
|