Skip to content

Commit c1e9d78

Browse files
authored
core/txpool: remove unused signer field from TxPool (#32787)
The TxPool.signer field was never read and each subpool (legacy/blob) maintains its own signer instance. This field remained after txpool refactoring into subpools and is dead code. Removing it reduces confusion and simplifies the constructor.
1 parent 01d0ce0 commit c1e9d78

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

core/txpool/txpool.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ type BlockChain interface {
6565
type TxPool struct {
6666
subpools []SubPool // List of subpools for specialized transaction handling
6767
chain BlockChain
68-
signer types.Signer
6968

7069
stateLock sync.RWMutex // The lock for protecting state instance
7170
state *state.StateDB // Current state at the blockchain head
@@ -98,7 +97,6 @@ func New(gasTip uint64, chain BlockChain, subpools []SubPool) (*TxPool, error) {
9897
pool := &TxPool{
9998
subpools: subpools,
10099
chain: chain,
101-
signer: types.LatestSigner(chain.Config()),
102100
state: statedb,
103101
quit: make(chan chan error),
104102
term: make(chan struct{}),

0 commit comments

Comments
 (0)