go-ethereum/contracts
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
..
blocksigner all: fix goimports (#1560) 2025-09-24 07:51:10 +08:00
multisigwallet all: fix goimports (#1495) 2025-09-17 08:15:43 +08:00
randomize core: move genesis alloc types to core/types (#29003) 2025-01-24 16:54:12 +08:00
solidity_0.6 new EVM Upgrade 2021-09-21 16:53:46 +05:30
tests contracts, tests: fix global variable modifications and remove unsafe parallelism (#1882) 2025-12-22 12:00:39 +05:30
trc21issuer all: replace Div/Mul with Rsh/Lsh if possible #29911 (#1966) 2026-01-29 11:31:58 +05:30
validator fix(all): fix typo foudation (#2063) 2026-02-28 18:00:55 +04:00
XDCx all: remove extra empty lines (#1574) 2025-10-08 12:25:10 +08:00
utils.go refactor(core/txpool): migrate tx subscription to SubscribeTransactions #28243 (#2125) 2026-03-10 18:44:38 +05:30
utils_test.go all: use 0x-prefix string for type Address in error message (#1835) 2025-12-23 15:39:23 +05:30