diff options
author | Jim Posen <jim.posen@gmail.com> | 2019-01-06 11:14:22 -0800 |
---|---|---|
committer | Jim Posen <jim.posen@gmail.com> | 2019-02-22 17:38:45 -0800 |
commit | e2d2abb99fe353ffc2ff3bc1ff578fad31065335 (patch) | |
tree | d2085909eecec7d13d78cb111bc466fa4f072480 /src/flatfile.h | |
parent | 9183d6ef656c8f3ed406821b99827f9b5f047665 (diff) |
validation: Refactor OpenDiskFile into method on FlatFileSeq.
Diffstat (limited to 'src/flatfile.h')
-rw-r--r-- | src/flatfile.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/flatfile.h b/src/flatfile.h index 9c7131d201..b1eea93140 100644 --- a/src/flatfile.h +++ b/src/flatfile.h @@ -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 |