2020-03-04 19:16:27 +00:00
|
|
|
package committee
|
|
|
|
|
2020-03-12 17:05:40 +00:00
|
|
|
import (
|
2023-08-25 23:11:45 +00:00
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/cosmos/cosmos-sdk/telemetry"
|
2020-03-12 17:05:40 +00:00
|
|
|
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"
|
2022-01-08 00:39:27 +00:00
|
|
|
|
|
|
|
"github.com/kava-labs/kava/x/committee/keeper"
|
2023-08-25 23:11:45 +00:00
|
|
|
"github.com/kava-labs/kava/x/committee/types"
|
2020-03-12 17:05:40 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// BeginBlocker runs at the start of every block.
|
2022-01-08 00:39:27 +00:00
|
|
|
func BeginBlocker(ctx sdk.Context, _ abci.RequestBeginBlock, k keeper.Keeper) {
|
2023-08-25 23:11:45 +00:00
|
|
|
defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), telemetry.MetricKeyBeginBlocker)
|
|
|
|
|
2021-06-07 16:08:03 +00:00
|
|
|
k.ProcessProposals(ctx)
|
2020-03-12 17:05:40 +00:00
|
|
|
}
|