Skip to content

Commit

Permalink
fix bug (cosmos#1738)
Browse files Browse the repository at this point in the history
  • Loading branch information
wukongcheng committed Aug 13, 2018
1 parent 9f2b83c commit 1fa0223
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 @@ -39,7 +39,7 @@ func EndBlocker(ctx sdk.Context, k keeper.Keeper) (ValidatorUpdates []abci.Valid

// Process types.Validator Provisions
blockTime := ctx.BlockHeader().Time
if pool.InflationLastTime+blockTime >= 3600 {
if blockTime-pool.InflationLastTime >= 3600 {
pool.InflationLastTime = blockTime
pool = pool.ProcessProvisions(params)
}
Expand Down

0 comments on commit 1fa0223

Please sign in to comment.