File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ func (e *Engine) updatePowState(txs []abci.Tx) {
250
250
}
251
251
252
252
for i , p := range e .activeParams {
253
- outOfScopeBlock := int64 (e .currentBlock ) + 1 - int64 (p .spamPoWNumberOfPastBlocks )
253
+ outOfScopeBlock := int64 (e .currentBlock ) - int64 (p .spamPoWNumberOfPastBlocks )
254
254
if outOfScopeBlock < 0 {
255
255
continue
256
256
}
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ func TestDeliverTxDuplciateNonce(t *testing.T) {
232
232
require .Equal (t , 2 , len (e .heightToNonceRef [100 ]))
233
233
234
234
// check the maps are purged when we leave scope
235
- e .BeginBlock (104 , crypto .RandomHash (), []abci.Tx {})
235
+ e .BeginBlock (105 , crypto .RandomHash (), []abci.Tx {})
236
236
require .Equal (t , 0 , len (e .seenTid ))
237
237
require .Equal (t , 0 , len (e .heightToTid ))
238
238
require .Equal (t , 0 , len (e .heightToNonceRef ))
You can’t perform that action at this time.
0 commit comments