1
0

rm duplicate method getpubkey

This commit is contained in:
ThomasV
2014-07-06 22:24:09 +02:00
parent b5b5edbee7
commit 2e1d24939c
3 changed files with 2 additions and 9 deletions

View File

@@ -207,7 +207,7 @@ class Commands:
def getpubkeys(self, addr):
out = { 'address':addr }
out['pubkeys'] = self.wallet.getpubkeys(addr)
out['pubkeys'] = self.wallet.get_public_keys(addr)
return out
def getbalance(self, account= None):

View File

@@ -354,12 +354,6 @@ class Abstract_Wallet:
raise Exception("Address not found", address)
def getpubkeys(self, addr):
assert is_address(addr) and self.is_mine(addr)
account, sequence = self.get_address_index(addr)
a = self.accounts[account]
return a.get_pubkeys( sequence )
def get_private_key(self, address, password):
if self.is_watching_only():
return []
@@ -386,7 +380,6 @@ class Abstract_Wallet:
mpk = [ self.master_public_keys[k] for k in self.master_private_keys.keys() ]
for xpub, sequence in xpub_list:
if xpub in mpk:
print "can sign", xpub
return True
return False