mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "core/txpool/legacypool: reheap the tx list if london fork not enabled (#27481)"
This reverts commit 0a44648415.
This commit is contained in:
parent
8dbdc2bce7
commit
7f7dab86e5
1 changed files with 3 additions and 7 deletions
|
|
@ -1206,13 +1206,9 @@ func (pool *LegacyPool) runReorg(done chan struct{}, reset *txpoolResetRequest,
|
||||||
// because of another transaction (e.g. higher gas price).
|
// because of another transaction (e.g. higher gas price).
|
||||||
if reset != nil {
|
if reset != nil {
|
||||||
pool.demoteUnexecutables()
|
pool.demoteUnexecutables()
|
||||||
if reset.newHead != nil {
|
if reset.newHead != nil && pool.chainconfig.IsLondon(new(big.Int).Add(reset.newHead.Number, big.NewInt(1))) {
|
||||||
if pool.chainconfig.IsLondon(new(big.Int).Add(reset.newHead.Number, big.NewInt(1))) {
|
|
||||||
pendingBaseFee := misc.CalcBaseFee(pool.chainconfig, reset.newHead)
|
pendingBaseFee := misc.CalcBaseFee(pool.chainconfig, reset.newHead)
|
||||||
pool.priced.SetBaseFee(pendingBaseFee)
|
pool.priced.SetBaseFee(pendingBaseFee)
|
||||||
} else {
|
|
||||||
pool.priced.Reheap()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// Update all accounts to the latest known pending nonce
|
// Update all accounts to the latest known pending nonce
|
||||||
nonces := make(map[common.Address]uint64, len(pool.pending))
|
nonces := make(map[common.Address]uint64, len(pool.pending))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue