mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-14 13:51:21 +00:00
TxsAvailable tests
This commit is contained in:
@ -25,6 +25,7 @@ type Mempool interface {
|
||||
Flush()
|
||||
|
||||
TxsAvailable() chan struct{}
|
||||
FireOnTxsAvailable()
|
||||
}
|
||||
|
||||
type MockMempool struct {
|
||||
@ -38,6 +39,7 @@ 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() {}
|
||||
|
||||
//------------------------------------------------------
|
||||
// blockstore
|
||||
|
Reference in New Issue
Block a user