From 512b73dfb850e58ded716e123133d70ec626d5f1 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 4 Oct 2017 21:58:56 +0200 Subject: [PATCH] fix trace for LabelSync with Imported_Wallet --- plugins/labels/labels.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/labels/labels.py b/plugins/labels/labels.py index 88a24c59c..3e778d544 100644 --- a/plugins/labels/labels.py +++ b/plugins/labels/labels.py @@ -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()