txpool

package
v0.23.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxPool

type TxPool struct {
	Chain *ethchainadapter.EthChainAdapter
	// contains filtered or unexported fields
}

TxPool is an obscuro wrapper around geths transaction pool

func NewTxPool

func NewTxPool(blockchain *ethchainadapter.EthChainAdapter, gasTip *big.Int, logger gethlog.Logger) (*TxPool, error)

NewTxPool returns a new instance of the tx pool

func (*TxPool) Add

func (t *TxPool) Add(transaction *common.L2Tx) error

Add adds a new transactions to the pool

func (*TxPool) Close added in v0.21.0

func (t *TxPool) Close() error

func (*TxPool) PendingTransactions

func (t *TxPool) PendingTransactions() map[gethcommon.Address][]*gethtxpool.LazyTransaction

PendingTransactions returns all pending transactions grouped per address and ordered per nonce

func (*TxPool) Running

func (t *TxPool) Running() bool

func (*TxPool) Start

func (t *TxPool) Start() error

Start starts the pool can only be started after t.blockchain has at least one block inside

func (*TxPool) Validate added in v0.22.0

func (t *TxPool) Validate(tx *common.L2Tx) error

Validate - run the underlying tx pool validation logic

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL