fixes from review; use mempool.TxsAvailable() directly

This commit is contained in:
Ethan Buchman
2017-07-28 23:42:43 -04:00
parent cf3abe5096
commit 3444bee47f
7 changed files with 51 additions and 72 deletions
+4 -4
View File
@@ -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