Merge pull request #146 from kaykurokawa/fix_lbryum_getbalance
Use new exclude_claimtrietx option in lbryum getbalance command, fix maturity use
This commit is contained in:
commit
eed7c54aaf
1 changed files with 4 additions and 2 deletions
|
@ -1205,8 +1205,10 @@ class LBRYumWallet(LBRYWallet):
|
||||||
def get_balance(self):
|
def get_balance(self):
|
||||||
cmd = known_commands['getbalance']
|
cmd = known_commands['getbalance']
|
||||||
func = getattr(self.cmd_runner, cmd.name)
|
func = getattr(self.cmd_runner, cmd.name)
|
||||||
d = threads.deferToThread(func)
|
accounts = None
|
||||||
d.addCallback(lambda result: result['unmatured'] if 'unmatured' in result else result['confirmed'])
|
exclude_claimtrietx = True
|
||||||
|
d = threads.deferToThread(func, accounts, exclude_claimtrietx)
|
||||||
|
d.addCallback(lambda result: result['confirmed'])
|
||||||
d.addCallback(Decimal)
|
d.addCallback(Decimal)
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue