aboutsummaryrefslogtreecommitdiff
path: root/src/index/base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/index/base.cpp')
-rw-r--r--src/index/base.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index/base.cpp b/src/index/base.cpp
index 419b6fa982..9d5c68d69e 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;
}