mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-12 21:52:53 +02:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user