mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-25 01:14:28 +00:00
fixes from review; use mempool.TxsAvailable() directly
This commit is contained in:
+4
-4
@@ -24,8 +24,8 @@ type Mempool interface {
|
||||
Update(height int, txs Txs)
|
||||
Flush()
|
||||
|
||||
TxsAvailable() chan struct{}
|
||||
FireOnTxsAvailable()
|
||||
TxsAvailable() chan int
|
||||
EnableTxsAvailable()
|
||||
}
|
||||
|
||||
type MockMempool struct {
|
||||
@@ -38,8 +38,8 @@ func (m MockMempool) CheckTx(tx Tx, cb func(*abci.Response)) error { return nil
|
||||
func (m MockMempool) Reap(n int) Txs { return Txs{} }
|
||||
func (m MockMempool) Update(height int, txs Txs) {}
|
||||
func (m MockMempool) Flush() {}
|
||||
func (m MockMempool) TxsAvailable() chan struct{} { return make(chan struct{}) }
|
||||
func (m MockMempool) FireOnTxsAvailable() {}
|
||||
func (m MockMempool) TxsAvailable() chan int { return make(chan int) }
|
||||
func (m MockMempool) EnableTxsAvailable() {}
|
||||
|
||||
//------------------------------------------------------
|
||||
// blockstore
|
||||
|
||||
Reference in New Issue
Block a user