mempool
Package mempool is a generated GoMock package.
import "github.com/luxfi/node/vms/platformvm/txs/mempool"Package mempool is a generated GoMock package.
Types
Mempool
func New(namespace string, registerer metric.Registerer) (*Mempool, error)func (m *Mempool) Add(tx *txs.Tx) errorfunc (m *Mempool) DropExpiredStakerTxs(minStartTime time.Time) []ids.IDfunc (m *Mempool) Has(txID ids.ID) boolfunc (m *Mempool) HasTxs() boolfunc (m *Mempool) PeekTxs(n int) []*txs.Txfunc (m *Mempool) Remove(txs ...*txs.Tx)func (m *Mempool) SetAuthPolicy(profile *config.ChainSecurityProfile, registry auth.ClassicalCompatRegistry)MockMempool
MockMempool is a mock of Mempool interface.
func NewMockMempool(ctrl *gomock.Controller) *MockMempoolfunc (m *MockMempool) Add(arg0 *txs.Tx) errorfunc (m *MockMempool) DropExpiredStakerTxs(arg0 time.Time) []ids.IDfunc (m *MockMempool) EXPECT() *MockMempoolMockRecorderfunc (m *MockMempool) Get(arg0 ids.ID) (*txs.Tx, bool)func (m *MockMempool) GetDropReason(arg0 ids.ID) errorfunc (m *MockMempool) Has(arg0 ids.ID) boolfunc (m *MockMempool) HasTxs() boolfunc (m *MockMempool) Iterate(arg0 func(*txs.Tx) bool)func (m *MockMempool) Len() intfunc (m *MockMempool) MarkDropped(arg0 ids.ID, arg1 error)func (m *MockMempool) Peek() (*txs.Tx, bool)func (m *MockMempool) PeekTxs(arg0 int) []*txs.Txfunc (m *MockMempool) Remove(arg0 ...*txs.Tx)func (m *MockMempool) RequestBuildBlock(arg0 bool)MockMempoolMockRecorder
MockMempoolMockRecorder is the mock recorder for MockMempool.
func (mr *MockMempoolMockRecorder) Add(arg0 any) *gomock.Callfunc (mr *MockMempoolMockRecorder) DropExpiredStakerTxs(arg0 any) *gomock.Callfunc (mr *MockMempoolMockRecorder) Get(arg0 any) *gomock.Callfunc (mr *MockMempoolMockRecorder) GetDropReason(arg0 any) *gomock.Callfunc (mr *MockMempoolMockRecorder) Has(arg0 any) *gomock.Callfunc (mr *MockMempoolMockRecorder) HasTxs() *gomock.Callfunc (mr *MockMempoolMockRecorder) Iterate(arg0 any) *gomock.Callfunc (mr *MockMempoolMockRecorder) Len() *gomock.Callfunc (mr *MockMempoolMockRecorder) MarkDropped(arg0, arg1 any) *gomock.Callfunc (mr *MockMempoolMockRecorder) Peek() *gomock.Callfunc (mr *MockMempoolMockRecorder) PeekTxs(arg0 any) *gomock.Callfunc (mr *MockMempoolMockRecorder) Remove(arg0 ...any) *gomock.Callfunc (mr *MockMempoolMockRecorder) RequestBuildBlock(arg0 any) *gomock.Call