From bdd1d25979906fa6b46090c2cde03e0566fa9b23 Mon Sep 17 00:00:00 2001 From: Andrew Kozlik Date: Tue, 5 May 2020 09:43:18 +0200 Subject: [PATCH] core/sign_tx: Require change-outputs to be for a non-zero amount. --- core/src/apps/wallet/sign_tx/bitcoin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/apps/wallet/sign_tx/bitcoin.py b/core/src/apps/wallet/sign_tx/bitcoin.py index 24d5150dd3..5c386c2b3a 100644 --- a/core/src/apps/wallet/sign_tx/bitcoin.py +++ b/core/src/apps/wallet/sign_tx/bitcoin.py @@ -490,6 +490,7 @@ class Bitcoin: self.wallet_path.output_matches(txo) and txo.address_n[-2] <= _BIP32_CHANGE_CHAIN and txo.address_n[-1] <= _BIP32_MAX_LAST_ELEMENT + and txo.amount > 0 ) # Tx Inputs