mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-13 03:26:38 +00:00
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.
This commit is contained in:
parent
01d0ce0bf1
commit
c1e9d78f1f
1 changed files with 0 additions and 2 deletions
|
|
@ -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{}),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue