mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-15 20:19:23 +00:00
xmr: allow zero amounts in ouputs
used in sweep transactions
This commit is contained in:
parent
66a636433d
commit
919c6a5749
@ -104,7 +104,7 @@ async def _validate(state: State, dst_entr, dst_entr_hmac):
|
||||
raise ValueError("Invalid number of inputs")
|
||||
if state.current_output_index >= state.output_count:
|
||||
raise ValueError("Invalid output index")
|
||||
if dst_entr.amount <= 0:
|
||||
if dst_entr.amount < 0:
|
||||
raise ValueError("Destination with wrong amount: %s" % dst_entr.amount)
|
||||
|
||||
# HMAC check of the destination
|
||||
|
Loading…
Reference in New Issue
Block a user