Skip to content

Commit 241c4d0

Browse files
committed
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.
1 parent 64f81a3 commit 241c4d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/psbt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static constexpr uint8_t PSBT_SEPARATOR = 0x00;
5454

5555
// BIP 174 does not specify a maximum file size, but we set a limit anyway
5656
// to prevent reading a stream indefinitely and running out of memory.
57-
const std::streamsize MAX_FILE_SIZE_PSBT = 100000000; // 100 MiB
57+
const std::streamsize MAX_FILE_SIZE_PSBT = 100000000; // 100 MB
5858

5959
// PSBT version number
6060
static constexpr uint32_t PSBT_HIGHEST_VERSION = 0;

0 commit comments

Comments
 (0)