Fix inflation calculation period check

This commit is contained in:
Hendrik Hofstadt 2018-07-18 13:12:49 +02:00
parent 2c81f4973f
commit b97ebef85e
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}