Merge d23cdf659e into merged_master (Bitcoin PR bitcoin/bitcoin#27905)

This commit is contained in:
Byron Hambly 2025-06-27 21:53:18 +02:00
commit ca48c69a5e

View file

@ -3234,6 +3234,7 @@ CBlockIndex* Chainstate::FindMostWorkChain()
while (pindexTest != pindexFailed) {
if (fFailedChain) {
pindexFailed->nStatus |= BLOCK_FAILED_CHILD;
m_blockman.m_dirty_blockindex.insert(pindexFailed);
} else if (fMissingData) {
// If we're missing data, then add back to m_blocks_unlinked,
// so that if the block arrives in the future we can try adding