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()
4859
4859
// For testing, allow transaction counts to be completely unset.
4860
4860
|| (pindex->nChainTx == 0 && pindex->nTx == 0 )
4861
4861
// 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 ());
4863
4865
4864
4866
if (pindexFirstAssumeValid == nullptr && pindex->nStatus & BLOCK_ASSUMED_VALID) pindexFirstAssumeValid = pindex;
4865
4867
if (pindexFirstInvalid == nullptr && pindex->nStatus & BLOCK_FAILED_VALID) pindexFirstInvalid = pindex;
You can’t perform that action at this time.
0 commit comments