Skip to content

core/chain_makers.go

Type MOD
Upstream Lines 649
Changed +4 -4

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

diff --git a/core/chain_makers.go b/core/chain_makers.go
index 46cd98de6..025f5ba68 100644
--- a/core/chain_makers.go
+++ b/core/chain_makers.go
@@ -239,9 +239,9 @@ func (b *BlockGen) AddUncle(h *types.Header) {

    // The gas limit and price should be derived from the parent
    h.GasLimit = parent.GasLimit
-   if b.cm.config.IsLondon(h.Number) {
+   if b.cm.config.IsEIP1559(h.Number) {
        h.BaseFee = eip1559.CalcBaseFee(b.cm.config, parent)
-       if !b.cm.config.IsLondon(parent.Number) {
+       if !b.cm.config.IsEIP1559(parent.Number) {
            parentGasLimit := parent.GasLimit * b.cm.config.ElasticityMultiplier()
            h.GasLimit = CalcGasLimit(parentGasLimit, parentGasLimit)
        }
@@ -516,9 +516,9 @@ func (cm *chainMaker) makeHeader(parent *types.Block, state *state.StateDB, engi
        Time:       time,
    }

-   if cm.config.IsLondon(header.Number) {
+   if cm.config.IsEIP1559(header.Number) {
        header.BaseFee = eip1559.CalcBaseFee(cm.config, parentHeader)
-       if !cm.config.IsLondon(parent.Number()) {
+       if !cm.config.IsEIP1559(parent.Number()) {
            parentGasLimit := parent.GasLimit() * cm.config.ElasticityMultiplier()
            header.GasLimit = CalcGasLimit(parentGasLimit, parentGasLimit)
        }

← Back to Core & EVM