File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -4850,7 +4850,9 @@ void ChainstateManager::CheckBlockIndex()
48504850 // For testing, allow transaction counts to be completely unset.
48514851 || (pindex->nChainTx == 0 && pindex->nTx == 0 )
48524852 // For testing, allow this nChainTx to be unset if previous is also unset.
4853- || (pindex->nChainTx == 0 && prev_chain_tx == 0 && pindex->pprev ));
4853+ || (pindex->nChainTx == 0 && prev_chain_tx == 0 && pindex->pprev )
4854+ // Transaction counts prior to snapshot are unknown.
4855+ || pindex->IsAssumedValid ());
48544856
48554857 if (pindexFirstAssumeValid == nullptr && pindex->nStatus & BLOCK_ASSUMED_VALID) pindexFirstAssumeValid = pindex;
48564858 if (pindexFirstInvalid == nullptr && pindex->nStatus & BLOCK_FAILED_VALID) pindexFirstInvalid = pindex;
You can’t perform that action at this time.
0 commit comments