aboutsummaryrefslogtreecommitdiff
path: root/src/chain.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2016-06-02 19:14:28 +0200
committerPieter Wuille <[email protected]>2016-06-02 19:14:34 +0200
commitec45cc5e27668171b55271b0c735194c70e7da41 (patch)
treebf390f0be48efca4653eed8a6e3468aba56f1786 /src/chain.cpp
parentMerge #8129: Fix RPC console auto completer (diff)
parentAdd test for dbwrapper iterators with same-prefix keys. (diff)
downloaddiscoin-ec45cc5e27668171b55271b0c735194c70e7da41.tar.xz
discoin-ec45cc5e27668171b55271b0c735194c70e7da41.zip
Merge #7992: Extend #7956 with one more test.
269a440 Add test for dbwrapper iterators with same-prefix keys. (Matt Corallo) 6030625 test: Add more thorough test for dbwrapper iterators (Wladimir J. van der Laan) 84c13e7 chain: Add assertion in case of missing records in index db (Wladimir J. van der Laan)
Diffstat (limited to 'src/chain.cpp')
-rw-r--r--src/chain.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/chain.cpp b/src/chain.cpp
index 32f6480f8..77e924e70 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--;
}