mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 12:00:59 +00:00
adjust script_sig size for use with multisig
adjust delays used when wrong pin is entered
This commit is contained in:
parent
c8faf4aeaa
commit
2b68813a4c
@ -140,12 +140,12 @@ bool protectPin(bool use_cached)
|
|||||||
const char *pin;
|
const char *pin;
|
||||||
uint32_t wait = storage_getPinFails();
|
uint32_t wait = storage_getPinFails();
|
||||||
if (wait) {
|
if (wait) {
|
||||||
if (wait > 4) {
|
if (wait > 2) {
|
||||||
layoutDialogSwipe(DIALOG_ICON_INFO, NULL, NULL, NULL, "Wrong PIN entered", NULL, "Please wait ...", NULL, NULL, NULL);
|
layoutDialogSwipe(DIALOG_ICON_INFO, NULL, NULL, NULL, "Wrong PIN entered", NULL, "Please wait ...", NULL, NULL, NULL);
|
||||||
}
|
}
|
||||||
wait = (wait < 32) ? (1u << wait) : 0xFFFFFFFF;
|
wait = (wait < 32) ? (1u << wait) : 0xFFFFFFFF;
|
||||||
while (--wait > 0) {
|
while (--wait > 0) {
|
||||||
delay(1000000);
|
delay(10000000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pin = requestPin(PinMatrixRequestType_PinMatrixRequestType_Current, "Please enter current PIN:");
|
pin = requestPin(PinMatrixRequestType_PinMatrixRequestType_Current, "Please enter current PIN:");
|
||||||
|
@ -7,7 +7,7 @@ CoinType.coin_shortcut max_size:9
|
|||||||
|
|
||||||
TxInputType.address_n max_count:8
|
TxInputType.address_n max_count:8
|
||||||
TxInputType.prev_hash max_size:32
|
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 max_size:35
|
||||||
TxOutputType.address_n max_count:8
|
TxOutputType.address_n max_count:8
|
||||||
|
Loading…
Reference in New Issue
Block a user