0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-08 10:31:50 -05:00

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.
This commit is contained in:
Ben Woosley 2022-06-07 15:49:03 -05:00
parent 64f81a38b9
commit 241c4d047e
No known key found for this signature in database
GPG key ID: 4D8CA4BA18040906

View file

@ -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;