Skip to content

eth/gasprice/feehistory.go

Type MOD
Upstream Lines 362
Changed +1 -1

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

diff --git a/eth/gasprice/feehistory.go b/eth/gasprice/feehistory.go
index e5a197f64..ef2d362bd 100644
--- a/eth/gasprice/feehistory.go
+++ b/eth/gasprice/feehistory.go
@@ -89,7 +89,7 @@ func (oracle *Oracle) processBlock(bf *blockFees, percentiles []float64) {
    if bf.results.baseFee = bf.header.BaseFee; bf.results.baseFee == nil {
        bf.results.baseFee = new(big.Int)
    }
-   if config.IsLondon(big.NewInt(int64(bf.blockNumber + 1))) {
+   if config.IsEIP1559(big.NewInt(int64(bf.blockNumber + 1))) {
        bf.results.nextBaseFee = eip1559.CalcBaseFee(config, bf.header)
    } else {
        bf.results.nextBaseFee = new(big.Int)

← Back to RPC & API