Skip to content

Commit b4fb512

Browse files
committed
UndoReadFromDisk works on undo files (rev), not on block files.
1 parent a82e5d8 commit b4fb512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2062,7 +2062,7 @@ bool UndoReadFromDisk(CBlockUndo& blockundo, const CDiskBlockPos& pos, const uin
20622062
// Open history file to read
20632063
CAutoFile filein(OpenUndoFile(pos, true), SER_DISK, CLIENT_VERSION);
20642064
if (filein.IsNull())
2065-
return error("%s: OpenBlockFile failed", __func__);
2065+
return error("%s: OpenUndoFile failed", __func__);
20662066

20672067
// Read block
20682068
uint256 hashChecksum;

0 commit comments

Comments
 (0)