mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-30 19:51:58 +00:00
Fix CheckTx/Update race condition
This commit is contained in:
@@ -216,6 +216,7 @@ func (mem *Mempool) collectTxs(maxTxs int) []types.Tx {
|
||||
func (mem *Mempool) Update(height int, txs []types.Tx) {
|
||||
mem.proxyMtx.Lock()
|
||||
defer mem.proxyMtx.Unlock()
|
||||
mem.proxyAppConn.FlushSync() // To flush async resCb calls e.g. from CheckTx
|
||||
|
||||
// First, create a lookup map of txns in new txs.
|
||||
txsMap := make(map[string]struct{})
|
||||
|
Reference in New Issue
Block a user