mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-09 09:51:08 +02: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:
@ -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
|
// 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.
|
// 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
|
// PSBT version number
|
||||||
static constexpr uint32_t PSBT_HIGHEST_VERSION = 0;
|
static constexpr uint32_t PSBT_HIGHEST_VERSION = 0;
|
||||||
|
Reference in New Issue
Block a user