refactor: Add and use PRUNE_TARGET_MANUAL constexpr

This commit is contained in:
MarcoFalke
2023-03-15 16:10:24 +01:00
parent fa9bd7be47
commit fadf8b8182
4 changed files with 4 additions and 5 deletions

View File

@@ -195,6 +195,7 @@ public:
/** Attempt to stay below this number of bytes of block files. */
[[nodiscard]] uint64_t GetPruneTarget() const { return m_opts.prune_target; }
static constexpr auto PRUNE_TARGET_MANUAL{std::numeric_limits<uint64_t>::max()};
[[nodiscard]] bool LoadingBlocks() const { return m_importing || fReindex; }