1
0

follow-up of wallet.get_private_key() -> wallet.export_private_key()

This commit is contained in:
SomberNight
2017-10-04 23:22:33 +02:00
parent 3d54011c5d
commit 4aa385e0b3
3 changed files with 5 additions and 4 deletions

View File

@@ -275,9 +275,9 @@ class Commands:
def getprivatekeys(self, address, password=None):
"""Get private keys of addresses. You may pass a single wallet address, or a list of wallet addresses."""
if is_address(address):
return self.wallet.get_private_key(address, password)
return self.wallet.export_private_key(address, password)[0]
domain = address
return [self.wallet.get_private_key(address, password) for address in domain]
return [self.wallet.export_private_key(address, password)[0] for address in domain]
@command('w')
def ismine(self, address):