mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-20 20:31:06 +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
|
addr = dest.addr
|
||||||
count += 1
|
count += 1
|
||||||
|
|
||||||
|
if count == 0 and change_addr:
|
||||||
|
return change_addr.view_public_key
|
||||||
|
|
||||||
if addr.view_public_key == crypto.NULL_KEY_ENC:
|
if addr.view_public_key == crypto.NULL_KEY_ENC:
|
||||||
raise ValueError("Invalid key")
|
raise ValueError("Invalid key")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user