diff --git a/src/txdb.cpp b/src/txdb.cpp index 9f364c7669..59dfd37bfd 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -398,6 +398,8 @@ int CBlockTreeDB::GetBlockIndexVersion(uint256 const & blockHash) CDiskBlockIndex diskindex; if (pcursor->GetValue(diskindex)) return diskindex.nDiskBlockVersion; + } else { + break; } } return -1;