1
0
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:
Andrew Kozlik 2020-05-05 09:43:18 +02:00 committed by Andrew Kozlik
parent d5faeb3f51
commit bdd1d25979

View File

@ -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