chain: Add assertion in case of missing records in index db

This commit is contained in:
Wladimir J. van der Laan committed 2016-04-27 11:11:36 +02:00
1 parent 5c7df7022b
commit 84c13e759d
1 file changed
+1
+1
View File
@@ -93,6 +93,7 @@ CBlockIndex* CBlockIndex::GetAncestor(int height)
pindexWalk = pindexWalk->pskip;
heightWalk = heightSkip;
} else {
assert(pindexWalk->pprev);
pindexWalk = pindexWalk->pprev;
heightWalk--;
}