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

Commit

Permalink
Merge pull request #387 from ph4r05/xmr-integrated-self
Browse files Browse the repository at this point in the history
xmr: fixes sending to self with stealth payment ID
  • Loading branch information
tsusanka committed Oct 27, 2018
2 parents 88fbf8e + d32dde8 commit 9086870
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/apps/monero/signing/step_01_init_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,9 @@ def _get_key_for_payment_id_encryption(destinations: list, change_addr=None):
addr = dest.addr
count += 1

if count == 0 and change_addr:
return change_addr.view_public_key

if addr.view_public_key == crypto.NULL_KEY_ENC:
raise ValueError("Invalid key")

Expand Down

0 comments on commit 9086870

Please sign in to comment.