Skip to content

Commit

Permalink
UndoReadFromDisk works on undo files (rev), not on block files.
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanik committed Sep 15, 2016
1 parent a82e5d8 commit b4fb512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2062,7 +2062,7 @@ bool UndoReadFromDisk(CBlockUndo& blockundo, const CDiskBlockPos& pos, const uin
// Open history file to read
CAutoFile filein(OpenUndoFile(pos, true), SER_DISK, CLIENT_VERSION);
if (filein.IsNull())
return error("%s: OpenBlockFile failed", __func__);
return error("%s: OpenUndoFile failed", __func__);

// Read block
uint256 hashChecksum;
Expand Down

0 comments on commit b4fb512

Please sign in to comment.