mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 00:05:18 +00:00
21 lines
604 B
Go
21 lines
604 B
Go
package community
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/cosmos/cosmos-sdk/telemetry"
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
"github.com/0glabs/0g-chain/x/community/keeper"
|
|
"github.com/0glabs/0g-chain/x/community/types"
|
|
)
|
|
|
|
// BeginBlocker runs the community module begin blocker logic.
|
|
func BeginBlocker(ctx sdk.Context, k keeper.Keeper) {
|
|
defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), telemetry.MetricKeyBeginBlocker)
|
|
|
|
// This exact call order is required to allow payout on the upgrade block
|
|
k.CheckAndDisableMintAndKavaDistInflation(ctx)
|
|
k.PayoutAccumulatedStakingRewards(ctx)
|
|
}
|