diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-04-26 14:34:40 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-04-27 11:11:36 +0200 |
commit | 84c13e759dbb0de282e2c8ce43d77f4d52fda6d9 (patch) | |
tree | 20cf3ccc1e322be101209a435daf801c73330569 /src/chain.cpp | |
parent | 5c7df7022bcd360e6af00b9458b1a3fd54e1cc9a (diff) |
chain: Add assertion in case of missing records in index db
Diffstat (limited to 'src/chain.cpp')
-rw-r--r-- | src/chain.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/chain.cpp b/src/chain.cpp index 32f6480f84..77e924e703 100644 --- a/src/chain.cpp +++ b/src/chain.cpp @@ -93,6 +93,7 @@ CBlockIndex* CBlockIndex::GetAncestor(int height) pindexWalk = pindexWalk->pskip; heightWalk = heightSkip; } else { + assert(pindexWalk->pprev); pindexWalk = pindexWalk->pprev; heightWalk--; } |