txpool

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: AGPL-3.0 Imports: 8 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 {
	// contains filtered or unexported fields
}

TxPool is an obscuro wrapper around geths transaction pool

func NewTxPool

func NewTxPool(blockchain *ethchainadapter.EthChainAdapter, gasTip *big.Int) (*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) 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

Jump to

Keyboard shortcuts

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