mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-27 06:42:02 +00:00
legacy: replace confusing Version group ID error message
This commit is contained in:
parent
e9ed0851b3
commit
047fcffde1
@ -1424,14 +1424,21 @@ void signing_txack(TransactionType *tx) {
|
|||||||
signing_abort();
|
signing_abort();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (coin->overwintered &&
|
if (coin->overwintered) {
|
||||||
(tx->version >= 3) != (tx->has_version_group_id)) {
|
if (tx->version >= 3 && !tx->has_version_group_id) {
|
||||||
fsm_sendFailure(FailureType_Failure_DataError,
|
fsm_sendFailure(FailureType_Failure_DataError,
|
||||||
_("Version group ID must be set when version >= 3."));
|
_("Version group ID must be set when version >= 3."));
|
||||||
signing_abort();
|
signing_abort();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!coin->overwintered) {
|
if (tx->version < 3 && tx->has_version_group_id) {
|
||||||
|
fsm_sendFailure(
|
||||||
|
FailureType_Failure_DataError,
|
||||||
|
_("Version group ID must be unset when version < 3."));
|
||||||
|
signing_abort();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} else { // !coin->overwintered
|
||||||
if (tx->has_version_group_id) {
|
if (tx->has_version_group_id) {
|
||||||
fsm_sendFailure(FailureType_Failure_DataError,
|
fsm_sendFailure(FailureType_Failure_DataError,
|
||||||
_("Version group ID not enabled on this coin."));
|
_("Version group ID not enabled on this coin."));
|
||||||
|
Loading…
Reference in New Issue
Block a user