Documentation
¶
Index ¶
- Variables
- type Mempool
- func (m *Mempool) Add(tx *txs.Tx) error
- func (m *Mempool) Get(txID ids.ID) (*txs.Tx, bool)
- func (m *Mempool) GetDropReason(txID ids.ID) error
- func (m *Mempool) Iterate(f func(tx *txs.Tx) bool)
- func (m *Mempool) Len() int
- func (m *Mempool) MarkDropped(txID ids.ID, reason error)
- func (m *Mempool) Peek() (*txs.Tx, bool)
- func (m *Mempool) Remove(txID ids.ID)
- func (m *Mempool) RemoveConflicts(utxos set.Set[ids.ID])
- func (m *Mempool) WaitForEvent(ctx context.Context) (common.Message, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotEnoughGas = errors.New("not enough gas")
)
Functions ¶
This section is empty.
Types ¶
type Mempool ¶
type Mempool struct {
// contains filtered or unexported fields
}
func New ¶ added in v1.10.16
func New( namespace string, weights gas.Dimensions, gasCapacity gas.Gas, avaxAssetID ids.ID, registerer prometheus.Registerer, ) (*Mempool, error)
func (*Mempool) GetDropReason ¶
GetDropReason returns why `txID` was dropped
func (*Mempool) MarkDropped ¶
MarkDropped marks `txID` as dropped
func (*Mempool) RemoveConflicts ¶
RemoveConflicts removes all txs conflicting with `utxos`
Click to show internal directories.
Click to hide internal directories.