Skip to content

Commit 98399b4

Browse files
committed
refactor: it's always either observer_ctx or active_ctx, not both created together
1 parent ffdcb56 commit 98399b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2420,7 +2420,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
24202420
{
24212421
const CBlockIndex* tip = WITH_LOCK(::cs_main, return chainman.ActiveTip());
24222422
const bool ibd = chainman.ActiveChainstate().IsInitialBlockDownload();
2423-
if (node.observer_ctx && !node.active_ctx) {
2423+
if (node.observer_ctx) {
24242424
node.observer_ctx->InitializeCurrentBlockTip(tip, ibd);
24252425
}
24262426
// Note: active_ctx initialization is deferred until after nodeman->Init()

0 commit comments

Comments
 (0)