mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-29 00:45:50 +01:00
doc: add explanations for assert in index and magic numbers in test
These were suggested in review of #23365 Co-authored-by: John Newbery <john@johnnewbery.com>
This commit is contained in:
@@ -96,6 +96,8 @@ bool BaseIndex::Init()
|
||||
prune_violation = false;
|
||||
break;
|
||||
}
|
||||
// block->pprev must exist at this point, since block_to_test is part of the chain
|
||||
// and thus must be encountered when going backwards from the tip
|
||||
assert(block->pprev);
|
||||
block = block->pprev;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user