no empty blocks

This commit is contained in:
Ethan Buchman
2017-07-28 22:11:45 -04:00
parent 39493bcd9a
commit 4beac54bd9
4 changed files with 69 additions and 6 deletions
+3
View File
@@ -23,6 +23,8 @@ type Mempool interface {
Reap(int) Txs
Update(height int, txs Txs)
Flush()
TxsAvailable() chan struct{}
}
type MockMempool struct {
@@ -35,6 +37,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 struct{} { return make(chan struct{}) }
//------------------------------------------------------
// blockstore