1
0

transaction: don't convert p2pk to p2pkh address when displaying

also closes #4742
This commit is contained in:
SomberNight
2018-10-01 04:58:26 +02:00
parent ab1ec57429
commit 4d43d12abf
7 changed files with 26 additions and 27 deletions

View File

@@ -34,7 +34,6 @@ from electrum.plugin import BasePlugin, hook
from electrum.i18n import _
class Plugin(BasePlugin):
button_label = _("Verify GA instant")
@@ -49,9 +48,9 @@ class Plugin(BasePlugin):
def get_my_addr(self, d):
"""Returns the address for given tx which can be used to request
instant confirmation verification from GreenAddress"""
for addr, _ in d.tx.get_outputs():
if d.wallet.is_mine(addr):
return addr
for o in d.tx.outputs():
if d.wallet.is_mine(o.address):
return o.address
return None
@hook