HardwareWalletClient: store fingerprint

This commit is contained in:
Sjors Provoost 2019-02-02 11:49:29 +01:00
parent 0ec664dba7
commit 6fc1524217
No known key found for this signature in database
GPG Key ID: 57FF9BDBCC301009
2 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,7 @@ def find_device(device_path, password='', device_type=None, fingerprint=None):
client.close()
continue
else:
client.fingerprint = master_fpr
return client
except:
if client:

View File

@ -8,6 +8,7 @@ class HardwareWalletClient(object):
self.password = password
self.message_magic = b"\x18Bitcoin Signed Message:\n"
self.is_testnet = False
self.fingerprint = None
# Get the master BIP 44 pubkey
def get_master_xpub(self):