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 @@ -4859,7 +4859,9 @@ void ChainstateManager::CheckBlockIndex()
48594859 // For testing, allow transaction counts to be completely unset.
48604860 || (pindex->nChainTx == 0 && pindex->nTx == 0 )
48614861 // For testing, allow this nChainTx to be unset if previous is also unset.
4862- || (pindex->nChainTx == 0 && prev_chain_tx == 0 && pindex->pprev ));
4862+ || (pindex->nChainTx == 0 && prev_chain_tx == 0 && pindex->pprev )
4863+ // Transaction counts prior to snapshot are unknown.
4864+ || pindex->IsAssumedValid ());
48634865
48644866 if (pindexFirstAssumeValid == nullptr && pindex->nStatus & BLOCK_ASSUMED_VALID) pindexFirstAssumeValid = pindex;
48654867 if (pindexFirstInvalid == nullptr && pindex->nStatus & BLOCK_FAILED_VALID) pindexFirstInvalid = pindex;
You can’t perform that action at this time.
0 commit comments