From 558da0a0271b87654bd704cb774f2a0c635e923f Mon Sep 17 00:00:00 2001 From: kkurokawa Date: Mon, 29 Aug 2016 22:33:10 -0400 Subject: [PATCH] Using new exclude_claimtrietx option in lbryum's getbalance command. Fixing incorrect use of maturity. --- lbrynet/core/LBRYWallet.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lbrynet/core/LBRYWallet.py b/lbrynet/core/LBRYWallet.py index 56d5c6645..8fc38d26d 100644 --- a/lbrynet/core/LBRYWallet.py +++ b/lbrynet/core/LBRYWallet.py @@ -1200,8 +1200,10 @@ class LBRYumWallet(LBRYWallet): def get_balance(self): cmd = known_commands['getbalance'] func = getattr(self.cmd_runner, cmd.name) - d = threads.deferToThread(func) - d.addCallback(lambda result: result['unmatured'] if 'unmatured' in result else result['confirmed']) + accounts = None + exclude_claimtrietx = True + d = threads.deferToThread(func, accounts, exclude_claimtrietx) + d.addCallback(lambda result: result['confirmed']) d.addCallback(Decimal) return d