1
0
mirror of https://github.com/fluencelabs/tendermint synced 2025-06-11 12:21:20 +00:00

only notify when there are some txs (Refs )

This commit is contained in:
Anton Kaliaev
2017-10-18 16:38:52 +04:00
committed by Ethan Buchman
parent b234f7aba2
commit f908dd0e55

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