Using new exclude_claimtrietx option in lbryum's getbalance command. Fixing incorrect use of maturity.

This commit is contained in:
kkurokawa 2016-08-29 22:33:10 -04:00
parent 1d39ec0317
commit 558da0a027

View file

@ -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