mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-06 08:07:11 +00:00
no empty blocks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user