commit fa487ae0cad1468b9c302a4cc51ec1077432b41f
parent f0ff73f0eb456015c6448fcdfc1f33d6e779af3a
Author: ThomasV <thomasv@electrum.org>
Date: Thu, 29 Sep 2016 09:47:45 +0200
fix: get_public_keys method of p2pk wallets
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib/wallet.py b/lib/wallet.py
@@ -1266,6 +1266,10 @@ class P2PK_Wallet(Abstract_Wallet):
pubkey_list = self.change_pubkeys if c else self.receiving_pubkeys
return pubkey_list[i]
+ def get_public_keys(self, address):
+ sequence = self.get_address_index(address)
+ return [self.get_pubkey(*sequence)]
+
def get_pubkey_index(self, pubkey):
if pubkey in self.receiving_pubkeys:
return False, self.receiving_pubkeys.index(pubkey)