From 2f3819ef9e89545d2e65b598720ccd608947e663 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Mon, 21 Sep 2020 14:37:00 +0000 Subject: [PATCH] mmgen-tool syncmonerowallets: display total wallet balance correctly --- mmgen/tool.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mmgen/tool.py b/mmgen/tool.py index 77831648..d0b8bd0a 100755 --- a/mmgen/tool.py +++ b/mmgen/tool.py @@ -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)