Documentation ¶
Index ¶
- type Lane
- func (_m *Lane) Compare(ctx types.Context, this types.Tx, other types.Tx) (int, error)
- func (_m *Lane) Contains(tx types.Tx) bool
- func (_m *Lane) CountTx() int
- func (_m *Lane) GetMaxBlockSpace() math.LegacyDec
- func (_m *Lane) GetTxInfo(ctx types.Context, tx types.Tx) (utils.TxWithInfo, error)
- func (_m *Lane) Insert(_a0 context.Context, _a1 types.Tx) error
- func (_m *Lane) Match(ctx types.Context, tx types.Tx) bool
- func (_m *Lane) Name() string
- func (_m *Lane) PrepareLane(ctx types.Context, proposal proposals.Proposal, next block.PrepareLanesHandler) (proposals.Proposal, error)
- func (_m *Lane) Priority(ctx types.Context, tx types.Tx) interface{}
- func (_m *Lane) ProcessLane(ctx types.Context, proposal proposals.Proposal, txs []types.Tx, ...) (proposals.Proposal, error)
- func (_m *Lane) Remove(_a0 types.Tx) error
- func (_m *Lane) Select(_a0 context.Context, _a1 [][]byte) mempool.Iterator
- type LaneMempool
- func (_m *LaneMempool) Compare(ctx types.Context, this types.Tx, other types.Tx) (int, error)
- func (_m *LaneMempool) Contains(tx types.Tx) bool
- func (_m *LaneMempool) CountTx() int
- func (_m *LaneMempool) Insert(_a0 context.Context, _a1 types.Tx) error
- func (_m *LaneMempool) Priority(ctx types.Context, tx types.Tx) interface{}
- func (_m *LaneMempool) Remove(_a0 types.Tx) error
- func (_m *LaneMempool) Select(_a0 context.Context, _a1 [][]byte) mempool.Iterator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lane ¶
Lane is an autogenerated mock type for the Lane type
func NewLane ¶
NewLane creates a new instance of Lane. 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 (*Lane) GetMaxBlockSpace ¶
GetMaxBlockSpace provides a mock function with given fields:
func (*Lane) GetTxInfo ¶ added in v1.3.0
GetTxInfo provides a mock function with given fields: ctx, tx
func (*Lane) PrepareLane ¶
func (_m *Lane) PrepareLane(ctx types.Context, proposal proposals.Proposal, next block.PrepareLanesHandler) (proposals.Proposal, error)
PrepareLane provides a mock function with given fields: ctx, proposal, next
func (*Lane) Priority ¶ added in v1.3.0
Priority provides a mock function with given fields: ctx, tx
func (*Lane) ProcessLane ¶
func (_m *Lane) ProcessLane(ctx types.Context, proposal proposals.Proposal, txs []types.Tx, next block.ProcessLanesHandler) (proposals.Proposal, error)
ProcessLane provides a mock function with given fields: ctx, proposal, txs, next
type LaneMempool ¶
LaneMempool is an autogenerated mock type for the LaneMempool type
func NewLaneMempool ¶
func NewLaneMempool(t interface { mock.TestingT Cleanup(func()) }) *LaneMempool
NewLaneMempool creates a new instance of LaneMempool. 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 (*LaneMempool) Contains ¶
func (_m *LaneMempool) Contains(tx types.Tx) bool
Contains provides a mock function with given fields: tx
func (*LaneMempool) CountTx ¶
func (_m *LaneMempool) CountTx() int
CountTx provides a mock function with given fields:
func (*LaneMempool) Priority ¶ added in v1.3.0
func (_m *LaneMempool) Priority(ctx types.Context, tx types.Tx) interface{}
Priority provides a mock function with given fields: ctx, tx