1
0
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:
Tomas Susanka 2018-10-27 15:22:53 +02:00 committed by GitHub
commit 90868702ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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