mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
Merge c452d6c1ef
into c5e44a0435
This commit is contained in:
commit
ef340eeec9
2 changed files with 4 additions and 4 deletions
|
@ -312,13 +312,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.
|
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.
|
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 `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 `testnet` -> `/testnet3`
|
||||||
- For `testnet4` -> `/testnet4`
|
- For `testnet4` -> `/testnet4`
|
||||||
- For `signet` -> `/signet`
|
- 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 `mainnet` -> `/chainstate`
|
||||||
- For `testnet` -> `/testnet3/chainstate`
|
- For `testnet` -> `/testnet3/chainstate`
|
||||||
- For `testnet4` -> `/testnet4/chainstate`
|
- For `testnet4` -> `/testnet4/chainstate`
|
||||||
|
|
|
@ -1798,7 +1798,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
||||||
|
|
||||||
// On first startup, warn on low block storage space
|
// On first startup, warn on low block storage space
|
||||||
if (!do_reindex && !do_reindex_chainstate && chain_active_height <= 1) {
|
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{
|
uint64_t additional_bytes_needed{
|
||||||
chainman.m_blockman.IsPruneMode() ?
|
chainman.m_blockman.IsPruneMode() ?
|
||||||
std::min(chainman.m_blockman.GetPruneTarget(), assumed_chain_bytes) :
|
std::min(chainman.m_blockman.GetPruneTarget(), assumed_chain_bytes) :
|
||||||
|
@ -1810,7 +1810,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
||||||
"Approximately %u GB of data will be stored in this directory."
|
"Approximately %u GB of data will be stored in this directory."
|
||||||
),
|
),
|
||||||
fs::quoted(fs::PathToString(args.GetBlocksDirPath())),
|
fs::quoted(fs::PathToString(args.GetBlocksDirPath())),
|
||||||
chainparams.AssumedBlockchainSize()
|
additional_bytes_needed / 1'000'000'000
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue