mempool: allow ReapX and CheckTx functions to run in parallel

allow ReapX and CheckTx functions to run in parallel, making it not possible to block certain proposers from creating a new block.

Closes: #2972
This commit is contained in:
Anton Kaliaev
2020-05-08 08:17:01 +04:00
committed by GitHub
parent 81c2798df0
commit 52784f67d0
8 changed files with 116 additions and 82 deletions

View File

@@ -38,5 +38,5 @@ func (Mempool) TxsBytes() int64 { return 0 }
func (Mempool) TxsFront() *clist.CElement { return nil }
func (Mempool) TxsWaitChan() <-chan struct{} { return nil }
func (Mempool) InitWAL() {}
func (Mempool) CloseWAL() {}
func (Mempool) InitWAL() error { return nil }
func (Mempool) CloseWAL() {}