diff options
| author | Pieter Wuille <[email protected]> | 2016-06-02 19:14:28 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-06-02 19:14:34 +0200 |
| commit | ec45cc5e27668171b55271b0c735194c70e7da41 (patch) | |
| tree | bf390f0be48efca4653eed8a6e3468aba56f1786 /src/chain.cpp | |
| parent | Merge #8129: Fix RPC console auto completer (diff) | |
| parent | Add test for dbwrapper iterators with same-prefix keys. (diff) | |
| download | discoin-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.cpp | 1 |
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--; } |