mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
chain: Add assertion in case of missing records in index db
This commit is contained in:
parent
5c7df7022b
commit
84c13e759d
@ -93,6 +93,7 @@ CBlockIndex* CBlockIndex::GetAncestor(int height)
|
|||||||
pindexWalk = pindexWalk->pskip;
|
pindexWalk = pindexWalk->pskip;
|
||||||
heightWalk = heightSkip;
|
heightWalk = heightSkip;
|
||||||
} else {
|
} else {
|
||||||
|
assert(pindexWalk->pprev);
|
||||||
pindexWalk = pindexWalk->pprev;
|
pindexWalk = pindexWalk->pprev;
|
||||||
heightWalk--;
|
heightWalk--;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user