go-ethereum/miner
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
..
agent.go all: fix staticcheck warning ST1006: don't use generic name self 2024-10-25 21:30:54 +08:00
miner.go all: move main transaction pool into a subpool #27463 (#1890) 2026-01-05 15:43:50 +05:30
ordering.go refactor(core/txpool): migrate tx subscription to SubscribeTransactions #28243 (#2125) 2026-03-10 18:44:38 +05:30
ordering_test.go refactor(core/txpool): migrate tx subscription to SubscribeTransactions #28243 (#2125) 2026-03-10 18:44:38 +05:30
remote_agent.go all: remove ethash pow 27178 (#1378) 2025-08-26 11:54:01 +08:00
unconfirmed.go all: remove duplicate word in comments (#1570) 2025-09-24 07:57:33 +08:00
unconfirmed_test.go metrics: fix some typos (#25551) 2024-12-13 14:00:12 +08:00
worker.go refactor(core/txpool): migrate tx subscription to SubscribeTransactions #28243 (#2125) 2026-03-10 18:44:38 +05:30
worker_test.go fix(miner): avoid XDPoS-only paths on non-XDPoS engines (#2049) 2026-03-06 11:24:39 +05:30