mmgen-tool syncmonerowallets: display total wallet balance correctly
This commit is contained in:
parent
1fa4f601d0
commit
2f3819ef9e
1 changed files with 3 additions and 2 deletions
|
|
@ -1095,10 +1095,11 @@ class MMGenToolCmdMonero(MMGenToolCmds):
|
|||
|
||||
t_elapsed = int(time.time() - t_start)
|
||||
|
||||
ret = await c.call('get_balance') # account_index=0, address_indices=[0,1]
|
||||
ret = await c.call('get_accounts')
|
||||
|
||||
from .obj import XMRAmt
|
||||
bals[fn] = tuple([XMRAmt(ret[k],from_unit='min_coin_unit') for k in ('balance','unlocked_balance')])
|
||||
bals[fn] = tuple([XMRAmt(ret[k],from_unit='min_coin_unit')
|
||||
for k in ('total_balance','total_unlocked_balance')])
|
||||
|
||||
if opt.debug:
|
||||
pp_msg(ret)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue