aboutsummaryrefslogtreecommitdiff
path: root/src/node/chainstate.cpp
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-09-01 17:22:27 +0200
committerMacroFake <falke.marco@gmail.com>2022-09-01 17:07:45 +0200
commitfa4c59d65bdf1c64056b18a58f8aaa2800995aa6 (patch)
tree984428eaf47f8b31d6b73d12b6b4da33b425ead0 /src/node/chainstate.cpp
parentfa3358b668d8415adc1b5586caa382fe4140ad42 (diff)
Move blockstorage option logging to LoadChainstate()
Diffstat (limited to 'src/node/chainstate.cpp')
-rw-r--r--src/node/chainstate.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node/chainstate.cpp b/src/node/chainstate.cpp
index 8e2b5c45f7..c4dd9ba6c5 100644
--- a/src/node/chainstate.cpp
+++ b/src/node/chainstate.cpp
@@ -41,6 +41,11 @@ ChainstateLoadResult LoadChainstate(ChainstateManager& chainman, const CacheSize
if (nMinimumChainWork < UintToArith256(chainman.GetConsensus().nMinimumChainWork)) {
LogPrintf("Warning: nMinimumChainWork set below default value of %s\n", chainman.GetConsensus().nMinimumChainWork.GetHex());
}
+ if (nPruneTarget == std::numeric_limits<uint64_t>::max()) {
+ LogPrintf("Block pruning enabled. Use RPC call pruneblockchain(height) to manually prune block and undo files.\n");
+ } else if (nPruneTarget) {
+ LogPrintf("Prune configured to target %u MiB on disk for block and undo files.\n", nPruneTarget / 1024 / 1024);
+ }
LOCK(cs_main);
chainman.InitializeChainstate(options.mempool);