Skip to content

core/txpool/legacypool/legacypool.go

Type MOD
Upstream Lines 1861
Changed +1 -1

Rename IsLondon→IsEIP1559 to honour the Mystique/ETC chain config (London without EIP-1559)

diff --git a/core/txpool/legacypool/legacypool.go b/core/txpool/legacypool/legacypool.go
index 3d66803fd..d4d3390ea 100644
--- a/core/txpool/legacypool/legacypool.go
+++ b/core/txpool/legacypool/legacypool.go
@@ -1260,7 +1260,7 @@ func (pool *LegacyPool) runReorg(done chan struct{}, reset *txpoolResetRequest,
    if reset != nil {
        pool.demoteUnexecutables()
        if reset.newHead != nil {
-           if pool.chainconfig.IsLondon(new(big.Int).Add(reset.newHead.Number, big.NewInt(1))) {
+           if pool.chainconfig.IsEIP1559(new(big.Int).Add(reset.newHead.Number, big.NewInt(1))) {
                pendingBaseFee := eip1559.CalcBaseFee(pool.chainconfig, reset.newHead)
                pool.priced.SetBaseFee(pendingBaseFee)
            } else {

← Back to Core & EVM