Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Commit

Permalink
xmr: simplification, do not ask to confirm change tx output
Browse files Browse the repository at this point in the history
- change address checked to match main address in the builder
  • Loading branch information
ph4r05 committed Aug 15, 2018
1 parent 6020059 commit 17164ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/apps/monero/controller/iface.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@ async def confirm_transaction(self, tsx_data, creds=None, ctx=None):
from apps.monero import layout

for idx, dst in enumerate(outs):
is_change = change_idx and idx == change_idx
if is_change:
continue

addr = encode_addr(
net_version(creds.network_type),
dst.addr.spend_public_key,
dst.addr.view_public_key,
)
is_change = change_idx and idx == change_idx

await layout.require_confirm_tx(
self.gctx(ctx), addr.decode("ascii"), dst.amount, is_change
)
Expand Down

0 comments on commit 17164ad

Please sign in to comment.