Versions in this module Expand all Collapse all v0 v0.0.15 Feb 20, 2023 Changes in this version + type Mempool struct + Pending chan struct{} + func New(g *chain.Genesis, maxSize int) *Mempool + func (th *Mempool) Add(tx *chain.Transaction) bool + func (th *Mempool) Get(id ids.ID) (*chain.Transaction, bool) + func (th *Mempool) Has(id ids.ID) bool + func (th *Mempool) Len() int + func (th *Mempool) NewTxs(maxUnits uint64) []*chain.Transaction + func (th *Mempool) PeekMax() (*chain.Transaction, uint64) + func (th *Mempool) PeekMin() (*chain.Transaction, uint64) + func (th *Mempool) PopMax() (*chain.Transaction, uint64) + func (th *Mempool) PopMin() (*chain.Transaction, uint64) + func (th *Mempool) Prune(validHashes set.Set[ids.ID]) + func (th *Mempool) Remove(id ids.ID) *chain.Transaction