From c1e9d78f1f8339b8dafed994530fb6fd231c48b0 Mon Sep 17 00:00:00 2001 From: MozirDmitriy Date: Tue, 30 Sep 2025 05:07:54 +0300 Subject: [PATCH] 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. --- core/txpool/txpool.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/txpool/txpool.go b/core/txpool/txpool.go index b5470cd7fc..437861efca 100644 --- a/core/txpool/txpool.go +++ b/core/txpool/txpool.go @@ -65,7 +65,6 @@ type BlockChain interface { type TxPool struct { subpools []SubPool // List of subpools for specialized transaction handling chain BlockChain - signer types.Signer stateLock sync.RWMutex // The lock for protecting state instance state *state.StateDB // Current state at the blockchain head @@ -98,7 +97,6 @@ func New(gasTip uint64, chain BlockChain, subpools []SubPool) (*TxPool, error) { pool := &TxPool{ subpools: subpools, chain: chain, - signer: types.LatestSigner(chain.Config()), state: statedb, quit: make(chan chan error), term: make(chan struct{}),