diff options
author | Martin Zumsande <mzumsande@gmail.com> | 2021-12-14 21:36:00 +0000 |
---|---|---|
committer | Martin Zumsande <mzumsande@gmail.com> | 2021-12-15 10:05:11 +0000 |
commit | e4a8d561edf3cfb326e86c87155fed41a61e7333 (patch) | |
tree | d3cf907ba858f0dba07146ea0e6d7ec3b2054b63 /src/index/base.cpp | |
parent | aaaceb7fb14fa69d34194e805bc384088f55d25c (diff) |
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>
Diffstat (limited to 'src/index/base.cpp')
-rw-r--r-- | src/index/base.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index/base.cpp b/src/index/base.cpp index 8525dcbfa0..24c289ed51 100644 --- a/src/index/base.cpp +++ b/src/index/base.cpp @@ -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; } |