consensus: test proposal heartbeat

This commit is contained in:
Ethan Buchman
2017-08-10 01:24:23 -04:00
parent 1ea43e513d
commit c5a657f540
6 changed files with 44 additions and 7 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ type Mempool interface {
Update(height int, txs Txs)
Flush()
TxsAvailable() chan int
TxsAvailable() <-chan int
EnableTxsAvailable()
}
@@ -38,7 +38,7 @@ 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 int { return make(chan int) }
func (m MockMempool) TxsAvailable() <-chan int { return make(chan int) }
func (m MockMempool) EnableTxsAvailable() {}
//------------------------------------------------------