From f93a6d22188d27a6ab957866d82562433e870602 Mon Sep 17 00:00:00 2001 From: qu0b Date: Fri, 30 Jan 2026 16:27:24 +0000 Subject: [PATCH] consensus/misc/eip4844: fix nil panic in Amsterdam blob config lookup The Amsterdam case in latestBlobConfig incorrectly assigned s.BPO2 instead of s.Amsterdam, causing a nil pointer dereference when the genesis config defines an Amsterdam blob schedule but not BPO2. Co-Authored-By: Claude Opus 4.5 --- consensus/misc/eip4844/eip4844.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/misc/eip4844/eip4844.go b/consensus/misc/eip4844/eip4844.go index 6078d21059..5d7c98ec84 100644 --- a/consensus/misc/eip4844/eip4844.go +++ b/consensus/misc/eip4844/eip4844.go @@ -70,7 +70,7 @@ func latestBlobConfig(cfg *params.ChainConfig, time uint64) *BlobConfig { case cfg.IsBPO3(london, time) && s.BPO3 != nil: bc = s.BPO3 case cfg.IsAmsterdam(london, time) && s.Amsterdam != nil: - bc = s.BPO2 + bc = s.Amsterdam case cfg.IsBPO2(london, time) && s.BPO2 != nil: bc = s.BPO2 case cfg.IsBPO1(london, time) && s.BPO1 != nil: