Browse Source

only notify when there are some txs (Refs #753)

pull/755/head
Anton Kaliaev 7 years ago
committed by Ethan Buchman
parent
commit
f908dd0e55
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      mempool/mempool.go

+ 4
- 1
mempool/mempool.go View File

@ -269,7 +269,10 @@ func (mem *Mempool) resCbRecheck(req *abci.Request, res *abci.Response) {
atomic.StoreInt32(&mem.rechecking, 0)
mem.logger.Info("Done rechecking txs")
mem.notifyTxsAvailable()
// incase the recheck removed all txs
if mem.Size() > 0 {
mem.notifyTxsAvailable()
}
}
default:
// ignore other messages


Loading…
Cancel
Save