Fix inflation calculation period check

This commit is contained in:
Hendrik Hofstadt
2018-07-20 00:17:44 +02:00
committed by Christopher Goes
parent 8989af2a58
commit 0185e3872b
+1 -1
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)
}