mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 14:11:21 +00:00
only notify when there are some txs (Refs #753)
This commit is contained in:
parent
b234f7aba2
commit
f908dd0e55
@ -269,7 +269,10 @@ 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")
|
||||||
|
|
||||||
mem.notifyTxsAvailable()
|
// incase the recheck removed all txs
|
||||||
|
if mem.Size() > 0 {
|
||||||
|
mem.notifyTxsAvailable()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
// ignore other messages
|
// ignore other messages
|
||||||
|
Loading…
x
Reference in New Issue
Block a user