From 83a81da37d5df58d4e17445f4a1090e58e94b69c Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Tue, 25 May 2021 16:01:01 +0200 Subject: [PATCH] fix(legacy): don't mention decred in btconly fw --- legacy/firmware/.changelog.d/1633.fixed | 1 + legacy/firmware/signing.c | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 legacy/firmware/.changelog.d/1633.fixed diff --git a/legacy/firmware/.changelog.d/1633.fixed b/legacy/firmware/.changelog.d/1633.fixed new file mode 100644 index 000000000..3ac6f55b1 --- /dev/null +++ b/legacy/firmware/.changelog.d/1633.fixed @@ -0,0 +1 @@ +Remove rest of altcoin logic from bitcoin-only build. diff --git a/legacy/firmware/signing.c b/legacy/firmware/signing.c index 0e611825e..2c3076143 100644 --- a/legacy/firmware/signing.c +++ b/legacy/firmware/signing.c @@ -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; }