Skip to content

Commit af05271

Browse files
committed
fix(op-node): add nil guard before dereferencing PragueTime in ProbablyMissingPectraBlobSchedule
tokamak-thanos-geth fork has SepoliaChainConfig.PragueTime = nil, causing a nil pointer panic when running against Sepolia L1. Guard both Holesky and Sepolia branches before dereferencing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d48fda9 commit af05271

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

op-node/rollup/types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,14 @@ func (cfg *Config) ProbablyMissingPectraBlobSchedule() bool {
381381

382382
var pragueTime uint64
383383
if cfg.L1ChainID.Cmp(params.HoleskyChainConfig.ChainID) == 0 {
384+
if params.HoleskyChainConfig.PragueTime == nil {
385+
return false
386+
}
384387
pragueTime = *params.HoleskyChainConfig.PragueTime
385388
} else if cfg.L1ChainID.Cmp(params.SepoliaChainConfig.ChainID) == 0 {
389+
if params.SepoliaChainConfig.PragueTime == nil {
390+
return false
391+
}
386392
pragueTime = *params.SepoliaChainConfig.PragueTime
387393
} else {
388394
// Only Holesky and Sepolia chains may have run into the

0 commit comments

Comments
 (0)