validation: Refactor OpenDiskFile into method on FlatFileSeq.

This commit is contained in:
Jim Posen
2019-01-06 11:14:22 -08:00
parent 9183d6ef65
commit e2d2abb99f
3 changed files with 29 additions and 25 deletions

View File

@@ -31,6 +31,9 @@ public:
/** Get the name of the file at the given position. */
fs::path FileName(const CDiskBlockPos& pos) const;
/** Open a handle to the file at the given position. */
FILE* Open(const CDiskBlockPos& pos, bool fReadOnly = false);
};
#endif // BITCOIN_FLATFILE_H