Versions in this module Expand all Collapse all v1 v1.0.3 Sep 5, 2024 v1.0.2 Sep 5, 2024 Changes in this version + var ErrAccountLimitExceeded = errors.New("account limit exceeded") + var ErrAlreadyKnown = errors.New("already known") + var ErrAlreadyReserved = errors.New("address already reserved") + var ErrFutureReplacePending = errors.New("future transaction tries to replace pending") + var ErrGasLimit = errors.New("exceeds block gas limit") + var ErrInvalidSender = errors.New("invalid sender") + var ErrNegativeValue = errors.New("negative value") + var ErrOversizedData = errors.New("oversized data") + var ErrReplaceUnderpriced = errors.New("replacement transaction underpriced") + var ErrUnderpriced = errors.New("transaction underpriced") + func ValidateTransaction(tx *types.Transaction, head *types.Header, signer types.Signer, ...) error + func ValidateTransactionWithState(tx *types.Transaction, signer types.Signer, opts *ValidationOptionsWithState) error + type AddressReserver func(addr common.Address, reserve bool) error + type BlockChain interface + CurrentBlock func() *types.Header + SubscribeChainHeadEvent func(ch chan<- core.ChainHeadEvent) event.Subscription + type LazyResolver interface + Get func(hash common.Hash) *types.Transaction + type LazyTransaction struct + BlobGas uint64 + Gas uint64 + GasFeeCap *uint256.Int + GasTipCap *uint256.Int + Hash common.Hash + Pool LazyResolver + Time time.Time + Tx *types.Transaction + func (ltx *LazyTransaction) Resolve() *types.Transaction + type PendingFilter struct + BaseFee *uint256.Int + BlobFee *uint256.Int + MinTip *uint256.Int + OnlyBlobTxs bool + OnlyPlainTxs bool + type SubPool interface + Add func(txs []*types.Transaction, local bool, sync bool) []error + Close func() error + Content func() (map[common.Address][]*types.Transaction, ...) + ContentFrom func(addr common.Address) ([]*types.Transaction, []*types.Transaction) + Filter func(tx *types.Transaction) bool + Get func(hash common.Hash) *types.Transaction + Has func(hash common.Hash) bool + Init func(gasTip uint64, head *types.Header, reserve AddressReserver) error + Locals func() []common.Address + Nonce func(addr common.Address) uint64 + Pending func(filter PendingFilter) map[common.Address][]*LazyTransaction + Reset func(oldHead, newHead *types.Header) + SetGasTip func(tip *big.Int) + Stats func() (int, int) + Status func(hash common.Hash) TxStatus + SubscribeTransactions func(ch chan<- core.NewTxsEvent, reorgs bool) event.Subscription + type TxPool struct + func New(gasTip uint64, chain BlockChain, subpools []SubPool) (*TxPool, error) + func (p *TxPool) Add(txs []*types.Transaction, local bool, sync bool) []error + func (p *TxPool) Close() error + func (p *TxPool) Content() (map[common.Address][]*types.Transaction, ...) + func (p *TxPool) ContentFrom(addr common.Address) ([]*types.Transaction, []*types.Transaction) + func (p *TxPool) Get(hash common.Hash) *types.Transaction + func (p *TxPool) Has(hash common.Hash) bool + func (p *TxPool) Locals() []common.Address + func (p *TxPool) Nonce(addr common.Address) uint64 + func (p *TxPool) Pending(filter PendingFilter) map[common.Address][]*LazyTransaction + func (p *TxPool) SetGasTip(tip *big.Int) + func (p *TxPool) Stats() (int, int) + func (p *TxPool) Status(hash common.Hash) TxStatus + func (p *TxPool) SubscribeTransactions(ch chan<- core.NewTxsEvent, reorgs bool) event.Subscription + func (p *TxPool) Sync() error + type TxStatus uint + const TxStatusIncluded + const TxStatusPending + const TxStatusQueued + const TxStatusUnknown + type ValidationOptions struct + Accept uint8 + Config *params.ChainConfig + MaxSize uint64 + MinTip *big.Int + type ValidationOptionsWithState struct + ExistingCost func(addr common.Address, nonce uint64) *big.Int + ExistingExpenditure func(addr common.Address) *big.Int + FirstNonceGap func(addr common.Address) uint64 + State *state.StateDB + UsedAndLeftSlots func(addr common.Address) (int, int)