go-ethereum/core/txpool/legacypool
Daniel Liu d4a6f43ef2
refactor(core/txpool): migrate tx subscription to SubscribeTransactions #28243 (#2125)
* refactor(txpool): remove wrapper type #27841

Partial backport of ethereum/go-ethereum PR #27841, limited to txpool wrapper removal.

- Migrate txpool interfaces/call sites from `*txpool.Transaction` to `*types.Transaction`
- Update eth/miner/contracts paths and related tests accordingly
- No intended behavior change

Blob sidecar validation/handling changes from upstream are not included here.

* refactor(core/txpool): migrate tx subscription to SubscribeTransactions #28243

Replace the old SubscribeNewTxsEvent-style plumbing with the new
SubscribeTransactions(ch, reorgs) interface across txpool, eth protocol
manager, API backend, miner worker, and test helpers.

Key changes:
- Extend txpool/subpool tx subscription interface with a reorgs flag
- Route eth tx announcement path to reorgs=false (new tx announcements only)
- Route API/miner subscriptions to reorgs=true
- Move subscription-scope cleanup to TxPool.Close()
- Add Gas field to LazyTransaction in legacy pending view

Note:
LegacyPool currently cannot strictly separate newly seen and resurrected txs,
so the reorgs flag is accepted for API compatibility and future blob-subpool
integration.
2026-03-10 18:44:38 +05:30
..
journal.go all: move main transaction pool into a subpool #27463 (#1890) 2026-01-05 15:43:50 +05:30
legacypool.go refactor(core/txpool): migrate tx subscription to SubscribeTransactions #28243 (#2125) 2026-03-10 18:44:38 +05:30
legacypool2_test.go core/txpool: add 7702 protection to blobpool #31526 (#1930) 2026-01-26 11:20:02 +05:30
legacypool_test.go all: replace Div/Mul with Rsh/Lsh if possible #29911 (#1966) 2026-01-29 11:31:58 +05:30
lending_pool.go refactor(all): remove term whitelist and blacklist (#1994) 2026-02-10 17:09:21 +05:30
lending_pool_test.go refactor(crypto): vendor in golang.org/x/crypto/sha3 #33323 (#2046) 2026-02-28 17:23:57 +04:00
lending_tx_journal.go all: move main transaction pool into a subpool #27463 (#1890) 2026-01-05 15:43:50 +05:30
lending_tx_list.go all: move main transaction pool into a subpool #27463 (#1890) 2026-01-05 15:43:50 +05:30
list.go core/txpool/legacypool: remove redundant check for floatingRatio #27477 (#1913) 2026-01-13 16:51:21 +05:30
list_test.go all: move main transaction pool into a subpool #27463 (#1890) 2026-01-05 15:43:50 +05:30
noncer.go all: move main transaction pool into a subpool #27463 (#1890) 2026-01-05 15:43:50 +05:30
order_pool.go refactor(all): remove term whitelist and blacklist (#1994) 2026-02-10 17:09:21 +05:30
order_tx_journal.go all: move main transaction pool into a subpool #27463 (#1890) 2026-01-05 15:43:50 +05:30
order_tx_list.go all: move main transaction pool into a subpool #27463 (#1890) 2026-01-05 15:43:50 +05:30