Versions in this module Expand all Collapse all v1 v1.11.13-rc.2 Dec 4, 2024 v1.0.0 Dec 4, 2024 Changes in this version + const MaxTxSize + var ErrCantIssueAdvanceTimeTx = errors.New("can not issue an advance time tx") + var ErrCantIssueRewardValidatorTx = errors.New("can not issue a reward validator tx") + var ErrConflictsWithOtherTx = errors.New("tx conflicts with other tx") + var ErrDuplicateTx = errors.New("duplicate tx") + var ErrMempoolFull = errors.New("mempool is full") + var ErrTxTooLarge = errors.New("tx too large") + type Mempool interface + Add func(tx *txs.Tx) error + Get func(txID ids.ID) (*txs.Tx, bool) + GetDropReason func(txID ids.ID) error + Iterate func(f func(tx *txs.Tx) bool) + Len func() int + MarkDropped func(txID ids.ID, reason error) + Peek func() (tx *txs.Tx, exists bool) + Remove func(txs ...*txs.Tx) + RequestBuildBlock func(emptyBlockPermitted bool) + func New(namespace string, registerer prometheus.Registerer, ...) (Mempool, error) + type MockMempool struct + func NewMockMempool(ctrl *gomock.Controller) *MockMempool + func (m *MockMempool) Add(arg0 *txs.Tx) error + func (m *MockMempool) EXPECT() *MockMempoolMockRecorder + func (m *MockMempool) Get(arg0 ids.ID) (*txs.Tx, bool) + func (m *MockMempool) GetDropReason(arg0 ids.ID) error + func (m *MockMempool) Iterate(arg0 func(*txs.Tx) bool) + func (m *MockMempool) Len() int + func (m *MockMempool) MarkDropped(arg0 ids.ID, arg1 error) + func (m *MockMempool) Peek() (*txs.Tx, bool) + func (m *MockMempool) Remove(arg0 ...*txs.Tx) + func (m *MockMempool) RequestBuildBlock(arg0 bool) + type MockMempoolMockRecorder struct + func (mr *MockMempoolMockRecorder) Add(arg0 any) *gomock.Call + func (mr *MockMempoolMockRecorder) Get(arg0 any) *gomock.Call + func (mr *MockMempoolMockRecorder) GetDropReason(arg0 any) *gomock.Call + func (mr *MockMempoolMockRecorder) Iterate(arg0 any) *gomock.Call + func (mr *MockMempoolMockRecorder) Len() *gomock.Call + func (mr *MockMempoolMockRecorder) MarkDropped(arg0, arg1 any) *gomock.Call + func (mr *MockMempoolMockRecorder) Peek() *gomock.Call + func (mr *MockMempoolMockRecorder) Remove(arg0 ...any) *gomock.Call + func (mr *MockMempoolMockRecorder) RequestBuildBlock(arg0 any) *gomock.Call