transaction: don't convert p2pk to p2pkh address when displaying
also closes #4742
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user