core/txpool: remove unused signer field from TxPool

This commit is contained in:
MozirDmitriy 2025-09-29 22:47:50 +03:00 committed by GitHub
parent 891bbad9ce
commit 8a28c74dd4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,7 +65,6 @@ type BlockChain interface {
type TxPool struct { type TxPool struct {
subpools []SubPool // List of subpools for specialized transaction handling subpools []SubPool // List of subpools for specialized transaction handling
chain BlockChain chain BlockChain
signer types.Signer
stateLock sync.RWMutex // The lock for protecting state instance stateLock sync.RWMutex // The lock for protecting state instance
state *state.StateDB // Current state at the blockchain head 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{ pool := &TxPool{
subpools: subpools, subpools: subpools,
chain: chain, chain: chain,
signer: types.LatestSigner(chain.Config()),
state: statedb, state: statedb,
quit: make(chan chan error), quit: make(chan chan error),
term: make(chan struct{}), term: make(chan struct{}),