diff --git a/consensus/misc/eip4844/eip4844.go b/consensus/misc/eip4844/eip4844.go index d4e30c10a6..edb83501da 100644 --- a/consensus/misc/eip4844/eip4844.go +++ b/consensus/misc/eip4844/eip4844.go @@ -123,6 +123,9 @@ func VerifyEIP4844Header(config *params.ChainConfig, parent, header *types.Heade func CalcExcessBlobGas(config *params.ChainConfig, parent *types.Header, headTimestamp uint64) uint64 { isOsaka := config.IsOsaka(config.LondonBlock) bcfg := latestBlobConfig(config, headTimestamp) + if bcfg == nil { + return 0 + } return calcExcessBlobGas(isOsaka, bcfg, parent) }