1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-18 19:31:04 +00:00

show Preparing instead of Signing where trezor is not signing :)

This commit is contained in:
Pavol Rusnak 2014-06-04 19:42:41 +02:00
parent 2b68813a4c
commit 80ab3b40b4

View File

@ -222,7 +222,7 @@ void signing_txack(TransactionType *tx)
switch (signing_stage) { switch (signing_stage) {
case STAGE_REQUEST_1_INPUT: case STAGE_REQUEST_1_INPUT:
layoutProgress("Signing", 1000 * progress / progress_total, progress); progress++; layoutProgress("Preparing", 1000 * progress / progress_total, progress); progress++;
memcpy(&input, tx->inputs, sizeof(TxInputType)); memcpy(&input, tx->inputs, sizeof(TxInputType));
send_req_2_prev_meta(); send_req_2_prev_meta();
return; return;
@ -270,7 +270,7 @@ void signing_txack(TransactionType *tx)
} }
return; return;
case STAGE_REQUEST_3_INPUT: case STAGE_REQUEST_3_INPUT:
layoutProgress("Signing", 1000 * progress / progress_total, progress); progress++; layoutProgress("Preparing", 1000 * progress / progress_total, progress); progress++;
if (!tx_hash_input(&tc, tx->inputs)) { if (!tx_hash_input(&tc, tx->inputs)) {
fsm_sendFailure(FailureType_Failure_Other, "Failed to serialize input"); fsm_sendFailure(FailureType_Failure_Other, "Failed to serialize input");
signing_abort(); signing_abort();