mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge a3fb1f80ac into merged_master (Bitcoin PR bitcoin/bitcoin#28791)
This commit is contained in:
commit
bbcfe2d45d
1 changed files with 3 additions and 1 deletions
|
|
@ -5344,7 +5344,9 @@ void ChainstateManager::CheckBlockIndex()
|
|||
// For testing, allow transaction counts to be completely unset.
|
||||
|| (pindex->nChainTx == 0 && pindex->nTx == 0)
|
||||
// For testing, allow this nChainTx to be unset if previous is also unset.
|
||||
|| (pindex->nChainTx == 0 && prev_chain_tx == 0 && pindex->pprev));
|
||||
|| (pindex->nChainTx == 0 && prev_chain_tx == 0 && pindex->pprev)
|
||||
// Transaction counts prior to snapshot are unknown.
|
||||
|| pindex->IsAssumedValid());
|
||||
|
||||
if (pindexFirstAssumeValid == nullptr && pindex->nStatus & BLOCK_ASSUMED_VALID) pindexFirstAssumeValid = pindex;
|
||||
if (pindexFirstInvalid == nullptr && pindex->nStatus & BLOCK_FAILED_VALID) pindexFirstInvalid = pindex;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue