aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2014-09-08 13:29:14 -0400
committerSuhas Daftuar <sdaftuar@gmail.com>2014-09-10 13:51:53 -0400
commitec7eb0fa80ce50f0c45c7f764bf4958224721ca0 (patch)
treece421586d0340a7f10fae45f9f844b0f38301148 /src/main.h
parentdf623d83dad6aa39141b066ebd2f870ee05acf41 (diff)
downloadbitcoin-ec7eb0fa80ce50f0c45c7f764bf4958224721ca0.tar.xz
When reindexing check for file before trying to open (refactored)
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 8c0a743e24..09de2187c4 100644
--- a/src/main.h
+++ b/src/main.h
@@ -145,6 +145,8 @@ bool CheckDiskSpace(uint64_t nAdditionalBytes = 0);
FILE* OpenBlockFile(const CDiskBlockPos &pos, bool fReadOnly = false);
/** Open an undo file (rev?????.dat) */
FILE* OpenUndoFile(const CDiskBlockPos &pos, bool fReadOnly = false);
+/** Translation to a filesystem path */
+boost::filesystem::path GetBlockPosFilename(const CDiskBlockPos &pos, const char *prefix);
/** Import blocks from an external file */
bool LoadExternalBlockFile(FILE* fileIn, CDiskBlockPos *dbp = NULL);
/** Initialize a new block tree database + block data on disk */