From 1fa02237c4207e38d2bf2c39320d4a2addf822fc Mon Sep 17 00:00:00 2001 From: Raymond Date: Mon, 13 Aug 2018 11:37:47 +0800 Subject: [PATCH] fix bug (https://github.com/cosmos/cosmos-sdk/pull/1738) --- x/stake/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/stake/handler.go b/x/stake/handler.go index b39298edebc1..14fb4f7bfffe 100644 --- a/x/stake/handler.go +++ b/x/stake/handler.go @@ -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) }