Run NodesReferencevmsplatformvmtxs

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) error
func (m *Mempool) DropExpiredStakerTxs(minStartTime time.Time) []ids.ID
func (m *Mempool) Has(txID ids.ID) bool
func (m *Mempool) HasTxs() bool
func (m *Mempool) PeekTxs(n int) []*txs.Tx
func (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) *MockMempool
func (m *MockMempool) Add(arg0 *txs.Tx) error
func (m *MockMempool) DropExpiredStakerTxs(arg0 time.Time) []ids.ID
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) Has(arg0 ids.ID) bool
func (m *MockMempool) HasTxs() bool
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) PeekTxs(arg0 int) []*txs.Tx
func (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.Call
func (mr *MockMempoolMockRecorder) DropExpiredStakerTxs(arg0 any) *gomock.Call
func (mr *MockMempoolMockRecorder) Get(arg0 any) *gomock.Call
func (mr *MockMempoolMockRecorder) GetDropReason(arg0 any) *gomock.Call
func (mr *MockMempoolMockRecorder) Has(arg0 any) *gomock.Call
func (mr *MockMempoolMockRecorder) HasTxs() *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) PeekTxs(arg0 any) *gomock.Call
func (mr *MockMempoolMockRecorder) Remove(arg0 ...any) *gomock.Call
func (mr *MockMempoolMockRecorder) RequestBuildBlock(arg0 any) *gomock.Call