1
0

labels plugin: use get_fingerprint

This commit is contained in:
ThomasV
2016-02-22 15:44:31 +01:00
parent 9b99693ca1
commit f97fdf3ba8
2 changed files with 10 additions and 1 deletions

View File

@@ -136,7 +136,7 @@ class LabelsPlugin(BasePlugin):
def start_wallet(self, wallet):
nonce = self.get_nonce(wallet)
self.print_error("wallet", wallet.basename(), "nonce is", nonce)
mpk = ''.join(sorted(wallet.get_master_public_keys().values()))
mpk = wallet.get_fingerprint()
if not mpk:
return
password = hashlib.sha1(mpk).digest().encode('hex')[:32]