Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
rigelrozanski committed Jul 20, 2018
1 parent 9e5a78f commit 5686d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/stake/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5686d66

Please sign in to comment.