Skip to content

internal/ethapi/simulate.go

Type MOD
Upstream Lines 644
Changed +1 -1

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

diff --git a/internal/ethapi/simulate.go b/internal/ethapi/simulate.go
index e3a14bf5d..7999ec031 100644
--- a/internal/ethapi/simulate.go
+++ b/internal/ethapi/simulate.go
@@ -259,7 +259,7 @@ func (sim *simulator) processBlock(ctx context.Context, block *simBlock, header,
    // Set header fields that depend only on parent block.
    // Parent hash is needed for evm.GetHashFn to work.
    header.ParentHash = parent.Hash()
-   if sim.chainConfig.IsLondon(header.Number) {
+   if sim.chainConfig.IsEIP1559(header.Number) {
        // In non-validation mode base fee is set to 0 if it is not overridden.
        // This is because it creates an edge case in EVM where gasPrice < baseFee.
        // Base fee could have been overridden.

← Back to RPC & API