You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -4404,23 +4358,6 @@ void CChainState::CheckBlockIndex()
}
if (!(pindex->nStatus & BLOCK_HAVE_DATA)) assert(!foundInUnlinked); // Can't be in m_blocks_unlinked if we don't HAVE_DATA
if (pindexFirstMissing == nullptr) assert(!foundInUnlinked); // We aren't missing data for any parent -- cannot be in m_blocks_unlinked.
- if (pindex->pprev && (pindex->nStatus & BLOCK_HAVE_DATA) && pindexFirstNeverProcessed == nullptr && pindexFirstMissing != nullptr) {- // We HAVE_DATA for this block, have received data for all parents at some point, but we're currently missing data for some parent.- assert(fHavePruned); // We must have pruned.- // This block may have entered m_blocks_unlinked if:- // - it has a descendant that at some point had more work than the- // tip, and- // - we tried switching to that descendant but were missing- // data for some intermediate block between m_chain and the- // tip.- // So if this block is itself better than m_chain.Tip() and it wasn't in- // setBlockIndexCandidates, then it must be in m_blocks_unlinked.- if (!CBlockIndexWorkComparator()(pindex, m_chain.Tip()) && setBlockIndexCandidates.count(pindex) == 0) {- if (pindexFirstInvalid == nullptr) {- assert(foundInUnlinked);- }- }- }
// assert(pindex->GetBlockHash() == pindex->GetBlockHeader().GetHash()); // Perhaps too slow
// End: actual consistency checks.
The text was updated successfully, but these errors were encountered:
Context: https://github.com/peercoin/peercoin/blob/6839e7cc431fd284b80fdf6a2d338aa03ca3ab6a/src/validation.cpp#L4358-L4363
Origin: https://github.com/ihavenoface/diff-btc-ppc/blob/main/src/validation.cpp.diff
The text was updated successfully, but these errors were encountered: