From 64f81a38b9f0e09e353d058aa88eb681a181df37 Mon Sep 17 00:00:00 2001 From: darosior Date: Tue, 23 Apr 2019 20:59:02 +0200 Subject: [PATCH 1/2] doc: Correct nPruneTarget misidentifying units of variable --- src/node/blockstorage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/blockstorage.h b/src/node/blockstorage.h index 2e52716649..e017f3f427 100644 --- a/src/node/blockstorage.h +++ b/src/node/blockstorage.h @@ -49,7 +49,7 @@ extern std::atomic_bool fReindex; /** Pruning-related variables and constants */ /** True if we're running in -prune mode. */ extern bool fPruneMode; -/** Number of MiB of block files that we're trying to stay below. */ +/** Number of bytes of block files that we're trying to stay below. */ extern uint64_t nPruneTarget; // Because validation code takes pointers to the map's CBlockIndex objects, if From 241c4d047ee658a976625c39c6acd04dd7b071ef Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Tue, 7 Jun 2022 15:49:03 -0500 Subject: [PATCH 2/2] doc: Correct comment describing value of MAX_FILE_SIZE_PSBT as in MiB 100 MiB is 100 * (10224 ** 2), or 107,374,182,400 bytes. --- src/psbt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/psbt.h b/src/psbt.h index 8fda889bb4..4a6d41076f 100644 --- a/src/psbt.h +++ b/src/psbt.h @@ -54,7 +54,7 @@ static constexpr uint8_t PSBT_SEPARATOR = 0x00; // BIP 174 does not specify a maximum file size, but we set a limit anyway // to prevent reading a stream indefinitely and running out of memory. -const std::streamsize MAX_FILE_SIZE_PSBT = 100000000; // 100 MiB +const std::streamsize MAX_FILE_SIZE_PSBT = 100000000; // 100 MB // PSBT version number static constexpr uint32_t PSBT_HIGHEST_VERSION = 0;