2022-12-09 04:17:14 +00:00
|
|
|
package registry
|
2022-04-05 07:09:27 +00:00
|
|
|
|
|
|
|
import (
|
2022-12-09 04:17:14 +00:00
|
|
|
"github.com/cerc-io/laconicd/x/registry/keeper"
|
2022-04-05 07:09:27 +00:00
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
abci "github.com/tendermint/tendermint/abci/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
// BeginBlocker will persist the current header and validator set as a historical entry
|
|
|
|
// and prune the oldest entry based on the HistoricalEntries parameter
|
|
|
|
func BeginBlocker(ctx sdk.Context, k keeper.Keeper) {
|
|
|
|
}
|
|
|
|
|
|
|
|
// EndBlocker Called every block, update validator set
|
|
|
|
func EndBlocker(ctx sdk.Context, k keeper.Keeper) []abci.ValidatorUpdate {
|
2022-04-19 07:16:24 +00:00
|
|
|
k.ProcessRecordExpiryQueue(ctx)
|
|
|
|
k.ProcessAuthorityExpiryQueue(ctx)
|
|
|
|
|
2022-04-05 07:09:27 +00:00
|
|
|
return []abci.ValidatorUpdate{}
|
|
|
|
}
|