mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 03:50:58 +00:00
core/sign_tx: Require change-outputs to be for a non-zero amount.
This commit is contained in:
parent
d5faeb3f51
commit
bdd1d25979
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user