xmr: allow zero amounts in ouputs

used in sweep transactions
pull/25/head
Tomas Susanka 6 years ago
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…
Cancel
Save