mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-28 16:21:03 +00:00
Merge pull request #387 from ph4r05/xmr-integrated-self
xmr: fixes sending to self with stealth payment ID
This commit is contained in:
commit
90868702ba
@ -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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user