mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 16:55:21 +00:00
8b6bbd36f4
* feat(metrics): add timing metrics to abci methods * update changelog
21 lines
441 B
Go
21 lines
441 B
Go
package kavadist
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/cosmos/cosmos-sdk/telemetry"
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
"github.com/kava-labs/kava/x/kavadist/keeper"
|
|
"github.com/kava-labs/kava/x/kavadist/types"
|
|
)
|
|
|
|
func BeginBlocker(ctx sdk.Context, k keeper.Keeper) {
|
|
defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), telemetry.MetricKeyBeginBlocker)
|
|
|
|
err := k.MintPeriodInflation(ctx)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|