Browse Source

mmgen-tool syncmonerowallets: display total wallet balance correctly

The MMGen Project 4 years ago
parent
commit
2f3819ef9e
1 changed files with 3 additions and 2 deletions
  1. 3 2
      mmgen/tool.py

+ 3 - 2
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)