From 2b68813a4ccb0bd3b6bbc93c0cba6a8b86bc92df Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 4 Jun 2014 17:59:58 +0200 Subject: [PATCH] adjust script_sig size for use with multisig adjust delays used when wrong pin is entered --- firmware/protect.c | 4 ++-- firmware/protob/types.options | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/protect.c b/firmware/protect.c index a473fd226e..4c1596ee26 100644 --- a/firmware/protect.c +++ b/firmware/protect.c @@ -140,12 +140,12 @@ bool protectPin(bool use_cached) const char *pin; uint32_t wait = storage_getPinFails(); if (wait) { - if (wait > 4) { + if (wait > 2) { layoutDialogSwipe(DIALOG_ICON_INFO, NULL, NULL, NULL, "Wrong PIN entered", NULL, "Please wait ...", NULL, NULL, NULL); } wait = (wait < 32) ? (1u << wait) : 0xFFFFFFFF; while (--wait > 0) { - delay(1000000); + delay(10000000); } } pin = requestPin(PinMatrixRequestType_PinMatrixRequestType_Current, "Please enter current PIN:"); diff --git a/firmware/protob/types.options b/firmware/protob/types.options index 9c29909b98..d3297e9dce 100644 --- a/firmware/protob/types.options +++ b/firmware/protob/types.options @@ -7,7 +7,7 @@ CoinType.coin_shortcut max_size:9 TxInputType.address_n max_count:8 TxInputType.prev_hash max_size:32 -TxInputType.script_sig max_size:256 +TxInputType.script_sig max_size:520 TxOutputType.address max_size:35 TxOutputType.address_n max_count:8