diff --git a/doc/release-process.md b/doc/release-process.md index 197ed8c0a4..f67e0e2bf9 100644 --- a/doc/release-process.md +++ b/doc/release-process.md @@ -310,13 +310,13 @@ cat "$VERSION"/*/all.SHA256SUMS.asc > SHA256SUMS.asc Both variables are used as a guideline for how much space the user needs on their drive in total, not just strictly for the blockchain. Note that all values should be taken from a **fully synced** node and have an overhead of 5-10% added on top of its base value. -To calculate `m_assumed_blockchain_size`, take the size in GiB of these directories: +To calculate `m_assumed_blockchain_size`, take the size in GB of these directories: - For `mainnet` -> the data directory, excluding the `/testnet3`, `/testnet4`, `/signet`, and `/regtest` directories and any overly large files, e.g. a huge `debug.log` - For `testnet` -> `/testnet3` - For `testnet4` -> `/testnet4` - For `signet` -> `/signet` -To calculate `m_assumed_chain_state_size`, take the size in GiB of these directories: +To calculate `m_assumed_chain_state_size`, take the size in GB of these directories: - For `mainnet` -> `/chainstate` - For `testnet` -> `/testnet3/chainstate` - For `testnet4` -> `/testnet4/chainstate` diff --git a/src/init.cpp b/src/init.cpp index 10abd503fc..ab27d0ec4b 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1754,7 +1754,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info) // On first startup, warn on low block storage space if (!do_reindex && !do_reindex_chainstate && chain_active_height <= 1) { - uint64_t assumed_chain_bytes{chainparams.AssumedBlockchainSize() * 1024 * 1024 * 1024}; + uint64_t assumed_chain_bytes{chainparams.AssumedBlockchainSize() * 1'000'000'000}; uint64_t additional_bytes_needed{ chainman.m_blockman.IsPruneMode() ? std::min(chainman.m_blockman.GetPruneTarget(), assumed_chain_bytes) : @@ -1766,7 +1766,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info) "Approximately %u GB of data will be stored in this directory." ), fs::quoted(fs::PathToString(args.GetBlocksDirPath())), - chainparams.AssumedBlockchainSize() + additional_bytes_needed / 1'000'000'000 )); } }