Browse Source

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

tags/v0.15.1
Wladimir J. van der Laan 5 years ago
parent
commit
84c13e759d
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/chain.cpp

+ 1
- 0
src/chain.cpp View File

@@ -93,6 +93,7 @@ CBlockIndex* CBlockIndex::GetAncestor(int height)
pindexWalk = pindexWalk->pskip;
heightWalk = heightSkip;
} else {
assert(pindexWalk->pprev);
pindexWalk = pindexWalk->pprev;
heightWalk--;
}

Loading…
Cancel
Save