From fb16039c0f9ea6cf00d99933062eb3688feae016 Mon Sep 17 00:00:00 2001 From: ucwong Date: Wed, 11 Feb 2026 01:59:33 +0800 Subject: [PATCH] chain view fix --- ctxc/backend.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ctxc/backend.go b/ctxc/backend.go index c23f313082..6922315e3f 100644 --- a/ctxc/backend.go +++ b/ctxc/backend.go @@ -260,6 +260,9 @@ func New(stack *node.Node, config *Config) (*Cortex, error) { } chainView := ctxc.newChainView(ctxc.blockchain.CurrentBlock().Header()) + if chainView == nil { + return nil, nil + } historyCutoff, _ := ctxc.blockchain.HistoryPruningCutoff() var finalBlock uint64 if fb := ctxc.blockchain.CurrentFinalizedBlock(); fb != nil {