This commit is contained in:
rigelrozanski 2018-07-20 11:39:29 -04:00
parent 9e5a78fc7a
commit 5686d6692a
1 changed files with 1 additions and 1 deletions

View File

@ -34,12 +34,12 @@ func NewHandler(k keeper.Keeper) sdk.Handler {
// Called every block, process inflation, update validator set
func EndBlocker(ctx sdk.Context, k keeper.Keeper) (ValidatorUpdates []abci.Validator) {
pool := k.GetPool(ctx)
// Process provision inflation
blockTime := ctx.BlockHeader().Time
if blockTime-pool.InflationLastTime >= 3600 {
params := k.GetParams(ctx)
pool := k.GetPool(ctx)
pool.InflationLastTime = blockTime
pool = pool.ProcessProvisions(params)
k.SetPool(ctx, pool)