Change CChain::FindFork() to take ref

The internal null-guard in FindFork() was removed in favor of adding any missing guards at call sites.
This commit is contained in:
optout
2026-02-03 11:18:01 +01:00
parent 20b58e281a
commit c5eb283bca
8 changed files with 14 additions and 14 deletions

View File

@@ -2374,7 +2374,7 @@ bool StartIndexBackgroundSync(NodeContext& node)
LogWarning("Failed to find block manager entry for best block %s from %s, falling back to genesis for index sync",
summary.best_block_hash.ToString(), summary.name);
} else if (!index_chain.Contains(*pindex)) {
pindex = index_chain.FindFork(pindex);
pindex = index_chain.FindFork(*pindex);
}
}
if (!pindex) {