Documentation ¶
Index ¶
- type Mempool
- func (_m *Mempool) CheckTx(ctx context.Context, tx types.Tx, cb func(*abcitypes.ResponseCheckTx), ...) error
- func (_m *Mempool) EnableTxsAvailable()
- func (_m *Mempool) Flush()
- func (_m *Mempool) FlushAppConn(_a0 context.Context) error
- func (_m *Mempool) Lock()
- func (_m *Mempool) ReapMaxBytesMaxGas(maxBytes int64, maxGas int64) types.Txs
- func (_m *Mempool) ReapMaxTxs(max int) types.Txs
- func (_m *Mempool) RemoveTxByKey(txKey types.TxKey) error
- func (_m *Mempool) Size() int
- func (_m *Mempool) SizeBytes() int64
- func (_m *Mempool) TxsAvailable() <-chan struct{}
- func (_m *Mempool) Unlock()
- func (_m *Mempool) Update(ctx context.Context, blockHeight int64, blockTxs types.Txs, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mempool ¶
Mempool is an autogenerated mock type for the Mempool type
func NewMempool ¶
NewMempool creates a new instance of Mempool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Mempool) CheckTx ¶
func (_m *Mempool) CheckTx(ctx context.Context, tx types.Tx, cb func(*abcitypes.ResponseCheckTx), txInfo mempool.TxInfo) error
CheckTx provides a mock function with given fields: ctx, tx, cb, txInfo
func (*Mempool) EnableTxsAvailable ¶
func (_m *Mempool) EnableTxsAvailable()
EnableTxsAvailable provides a mock function with given fields:
func (*Mempool) Flush ¶
func (_m *Mempool) Flush()
Flush provides a mock function with given fields:
func (*Mempool) FlushAppConn ¶
FlushAppConn provides a mock function with given fields: _a0
func (*Mempool) ReapMaxBytesMaxGas ¶
ReapMaxBytesMaxGas provides a mock function with given fields: maxBytes, maxGas
func (*Mempool) ReapMaxTxs ¶
ReapMaxTxs provides a mock function with given fields: max
func (*Mempool) RemoveTxByKey ¶
RemoveTxByKey provides a mock function with given fields: txKey
func (*Mempool) TxsAvailable ¶
func (_m *Mempool) TxsAvailable() <-chan struct{}
TxsAvailable provides a mock function with given fields:
func (*Mempool) Unlock ¶
func (_m *Mempool) Unlock()
Unlock provides a mock function with given fields:
func (*Mempool) Update ¶
func (_m *Mempool) Update(ctx context.Context, blockHeight int64, blockTxs types.Txs, txResults []*abcitypes.ExecTxResult, newPreFn mempool.PreCheckFunc, newPostFn mempool.PostCheckFunc, recheck bool) error
Update provides a mock function with given fields: ctx, blockHeight, blockTxs, txResults, newPreFn, newPostFn, recheck