We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cd8dc2 commit 764bfe4Copy full SHA for 764bfe4
src/psbt.h
@@ -40,6 +40,10 @@ static constexpr uint8_t PSBT_OUT_BIP32_DERIVATION = 0x02;
40
// as a 0 length key which indicates that this is the separator. The separator has no value.
41
static constexpr uint8_t PSBT_SEPARATOR = 0x00;
42
43
+// BIP 174 does not specify a maximum file size, but we set a limit anyway
44
+// to prevent reading a stream indefinately and running out of memory.
45
+const std::streamsize MAX_FILE_SIZE_PSBT = 100000000; // 100 MiB
46
+
47
/** A structure for PSBTs which contain per-input information */
48
struct PSBTInput
49
{
0 commit comments