aboutsummaryrefslogtreecommitdiff
path: root/src/node/blockstorage.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-04-18 16:31:53 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-04-27 10:32:54 +0200
commitfa7e64d58615fffea91cd64dc4a2790221ceff0a (patch)
tree146b29200b14b057ee0b9886b25f739ef5b2a454 /src/node/blockstorage.h
parentfa247a327fc7c7cea6bc8f93637b8babd3015ffa (diff)
move-only: Move constants to blockstorage
Diffstat (limited to 'src/node/blockstorage.h')
-rw-r--r--src/node/blockstorage.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/node/blockstorage.h b/src/node/blockstorage.h
index a5c822030d..2cef3abd66 100644
--- a/src/node/blockstorage.h
+++ b/src/node/blockstorage.h
@@ -25,6 +25,13 @@ struct Params;
static constexpr bool DEFAULT_STOPAFTERBLOCKIMPORT{false};
+/** The pre-allocation chunk size for blk?????.dat files (since 0.8) */
+static const unsigned int BLOCKFILE_CHUNK_SIZE = 0x1000000; // 16 MiB
+/** The pre-allocation chunk size for rev?????.dat files (since 0.8) */
+static const unsigned int UNDOFILE_CHUNK_SIZE = 0x100000; // 1 MiB
+/** The maximum size of a blk?????.dat file (since 0.8) */
+static const unsigned int MAX_BLOCKFILE_SIZE = 0x8000000; // 128 MiB
+
extern std::atomic_bool fImporting;
extern std::atomic_bool fReindex;
/** Pruning-related variables and constants */