fix trace for LabelSync with Imported_Wallet

This commit is contained in:
SomberNight 2017-10-04 21:58:56 +02:00
parent 3d54011c5d
commit 512b73dfb8
1 changed files with 2 additions and 1 deletions

View File

@ -135,9 +135,10 @@ class LabelsPlugin(BasePlugin):
def start_wallet(self, wallet):
nonce = self.get_nonce(wallet)
self.print_error("wallet", wallet.basename(), "nonce is", nonce)
mpk = wallet.get_fingerprint().encode('ascii')
mpk = wallet.get_fingerprint()
if not mpk:
return
mpk = mpk.encode('ascii')
password = hashlib.sha1(mpk).hexdigest()[:32].encode('ascii')
iv = hashlib.sha256(password).digest()[:16]
wallet_id = hashlib.sha256(mpk).hexdigest()