1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 12:28:09 +00:00

fix(legacy): don't mention decred in btconly fw

This commit is contained in:
Martin Milata 2021-05-25 16:01:01 +02:00
parent 901580817d
commit 83a81da37d
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
Remove rest of altcoin logic from bitcoin-only build.

View File

@ -1070,6 +1070,7 @@ static bool signing_validate_output(TxOutputType *txoutput) {
}
static bool signing_validate_bin_output(TxOutputBinType *tx_bin_output) {
#if !BITCOIN_ONLY
if (!coin->decred && tx_bin_output->has_decred_script_version) {
fsm_sendFailure(
FailureType_Failure_DataError,
@ -1077,6 +1078,9 @@ static bool signing_validate_bin_output(TxOutputBinType *tx_bin_output) {
signing_abort();
return false;
}
#else
(void)tx_bin_output;
#endif
return true;
}