1
0
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:
Dusan Klinec 2018-10-27 14:02:25 +02:00
parent 88fbf8e026
commit d32dde8fe8
No known key found for this signature in database
GPG Key ID: 6337E118CCBCE103

View File

@ -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")