From 3e45449e8cb40bb2846724f22509d1c75455be05 Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 12 Sep 2016 13:16:56 -0400 Subject: [PATCH] return unconfirmed balance --- lbrynet/core/LBRYWallet.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lbrynet/core/LBRYWallet.py b/lbrynet/core/LBRYWallet.py index 4248194b7..da1915674 100644 --- a/lbrynet/core/LBRYWallet.py +++ b/lbrynet/core/LBRYWallet.py @@ -1235,8 +1235,7 @@ class LBRYumWallet(LBRYWallet): accounts = None exclude_claimtrietx = True d = threads.deferToThread(func, accounts, exclude_claimtrietx) - d.addCallback(lambda result: result['confirmed']) - d.addCallback(Decimal) + d.addCallback(lambda result: Decimal(result['confirmed']) + Decimal(result.get('unconfirmed', 0.0))) return d def get_new_address(self):