Versions in this module Expand all Collapse all v1 v1.13.13 Aug 9, 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 + 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) Init(gasTip uint64, head *types.Header, reserve txpool.AddressReserver) error + func (pool *LegacyPool) Locals() []common.Address + func (pool *LegacyPool) Nonce(addr common.Address) uint64 + func (pool *LegacyPool) Pending(filter txpool.PendingFilter) map[common.Address][]*txpool.LazyTransaction + func (pool *LegacyPool) Reset(oldHead, newHead *types.Header) + func (pool *LegacyPool) SetGasTip(tip *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