core/evm.go¶
| Type | MOD |
| Upstream Lines | 148 |
| Changed | +3 -0 |
Treat London-without-EIP-1559 (Mystique) as zero base fee in NewEVMBlockContext
diff --git a/core/evm.go b/core/evm.go
index 73e4c01a9..fbd0d1233 100644
--- a/core/evm.go
+++ b/core/evm.go
@@ -56,6 +56,9 @@ func NewEVMBlockContext(header *types.Header, chain ChainContext, author *common
}
if header.BaseFee != nil {
baseFee = new(big.Int).Set(header.BaseFee)
+ } else if chain != nil && chain.Config().IsLondon(header.Number) && !chain.Config().IsEIP1559(header.Number) {
+ // London without EIP-1559 (e.g., ETC Mystique), use 0 as base fee
+ baseFee = common.Big0
}
if header.ExcessBlobGas != nil {
blobBaseFee = eip4844.CalcBlobFee(chain.Config(), header)