mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-15 19:08:07 +00:00
xmr: fixes sending to self with stealth payment ID
This commit is contained in:
parent
88fbf8e026
commit
d32dde8fe8
@ -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