Skip to content

Commit 3aaa705

Browse files
authored
Merge pull request #2649 from CortexFoundation/dev
chain view fix
2 parents bd84752 + fb16039 commit 3aaa705

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ctxc/backend.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ func New(stack *node.Node, config *Config) (*Cortex, error) {
260260
}
261261

262262
chainView := ctxc.newChainView(ctxc.blockchain.CurrentBlock().Header())
263+
if chainView == nil {
264+
return nil, nil
265+
}
263266
historyCutoff, _ := ctxc.blockchain.HistoryPruningCutoff()
264267
var finalBlock uint64
265268
if fb := ctxc.blockchain.CurrentFinalizedBlock(); fb != nil {

0 commit comments

Comments
 (0)