From ef17ffd1406f1ec0dc0cc41781087dc4e9ef2e65 Mon Sep 17 00:00:00 2001 From: "Peter D. Gray" Date: Wed, 12 Jan 2022 09:30:58 -0500 Subject: [PATCH] Mk4 values added --- ckcc/constants.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ckcc/constants.py b/ckcc/constants.py index eb9288d..3cf2c40 100644 --- a/ckcc/constants.py +++ b/ckcc/constants.py @@ -18,9 +18,11 @@ MAX_MSG_LEN = const(4+4+4+MAX_BLK_LEN) # - the max on the wire for mainnet is 100k # - but a PSBT might contain a full txn for each input MAX_TXN_LEN = const(384*1024) +MAX_TXN_LEN_MK4 = const(2*1024*1024) # Max size of any upload (firmware.dfu files in particular) MAX_UPLOAD_LEN = const(2*MAX_TXN_LEN) +MAX_UPLOAD_LEN_MK4 = const(2*MAX_TXN_LEN_MK4) # Max length of text messages for signing MSG_SIGNING_MAX_LENGTH = const(240)