From 8f3b596385f286a45f711f427d9f4192292a96a9 Mon Sep 17 00:00:00 2001 From: hackrush Date: Mon, 20 May 2019 13:17:43 +0530 Subject: [PATCH] Add consolidated field to migration result --- lbrynet/wallet/account.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lbrynet/wallet/account.py b/lbrynet/wallet/account.py index 23b8babda..d1886cebe 100644 --- a/lbrynet/wallet/account.py +++ b/lbrynet/wallet/account.py @@ -53,6 +53,7 @@ class Account(BaseAccount): results = { 'total': 0, + 'consolidated': 0, 'migrate-success': 0, 'migrate-failed': 0, 'previous-success': 0, @@ -71,6 +72,8 @@ class Account(BaseAccount): if pubkey_hash not in new_channel_keys and pubkey_hash not in self.channel_keys: new_channel_keys[pubkey_hash] = private_key_pem results['migrate-success'] += 1 + else: + results['consolidated'] += 1 except Exception as e: results['migrate-failed'] += 1 log.warning("Failed to migrate certificate for %s, incorrect private key: %s",