Skip to content

Commit

Permalink
Fixing hanging on index loading (#768)
Browse files Browse the repository at this point in the history
* Fixing hanging on index loading

* Moved break to the right place
  • Loading branch information
a-bezrukov authored and Reuben Yap committed Dec 4, 2019
1 parent 7e82896 commit beb6440
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/txdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,8 @@ int CBlockTreeDB::GetBlockIndexVersion(uint256 const & blockHash)
CDiskBlockIndex diskindex;
if (pcursor->GetValue(diskindex))
return diskindex.nDiskBlockVersion;
} else {
break;
}
}
return -1;
Expand Down

0 comments on commit beb6440

Please sign in to comment.