Versions in this module Expand all Collapse all v0 v0.13.7 Jul 13, 2024 Changes in this version + var DefaultConfig = Config + var ErrTxPoolOverflow = errors.New("txpool is full") + type BlockChain interface + Config func() *params.ChainConfig + CurrentBlock func() *types.Header + GetBlock func(hash common.Hash, number uint64) *types.Block + SenderCacher func() *core.TxSenderCacher + StateAt func(root common.Hash) (*state.StateDB, error) + type Config struct + AccountQueue uint64 + AccountSlots uint64 + GlobalQueue uint64 + GlobalSlots uint64 + Journal string + Lifetime time.Duration + Locals []common.Address + NoLocals bool + PriceBump uint64 + PriceLimit uint64 + Rejournal time.Duration + type LegacyPool struct + func New(config Config, chain BlockChain) *LegacyPool + func (pool *LegacyPool) Add(txs []*types.Transaction, local, sync bool) []error + func (pool *LegacyPool) Close() error + func (pool *LegacyPool) Content() (map[common.Address][]*types.Transaction, ...) + func (pool *LegacyPool) ContentFrom(addr common.Address) ([]*types.Transaction, []*types.Transaction) + func (pool *LegacyPool) Filter(tx *types.Transaction) bool + func (pool *LegacyPool) Get(hash common.Hash) *types.Transaction + func (pool *LegacyPool) Has(hash common.Hash) bool + func (pool *LegacyPool) HasLocal(hash common.Hash) bool + func (pool *LegacyPool) Init(gasTip *big.Int, head *types.Header, reserve txpool.AddressReserver) error + func (pool *LegacyPool) IteratePending(f func(tx *types.Transaction) bool) bool + func (pool *LegacyPool) Locals() []common.Address + func (pool *LegacyPool) Nonce(addr common.Address) uint64 + func (pool *LegacyPool) Pending(enforceTips bool) map[common.Address][]*txpool.LazyTransaction + func (pool *LegacyPool) PendingWithBaseFee(enforceTips bool, baseFee *big.Int) map[common.Address][]*txpool.LazyTransaction + func (pool *LegacyPool) Reset(oldHead, newHead *types.Header) + func (pool *LegacyPool) SetGasTip(tip *big.Int) + func (pool *LegacyPool) SetMinFee(minFee *big.Int) + func (pool *LegacyPool) Stats() (int, int) + func (pool *LegacyPool) Status(hash common.Hash) txpool.TxStatus + func (pool *LegacyPool) SubscribeTransactions(ch chan<- core.NewTxsEvent, reorgs bool) event.Subscription