From d946009e7d68dddcf852b987ae5a4fead8b08a52 Mon Sep 17 00:00:00 2001 From: Tim Akinbo <41004+takinbo@users.noreply.github.com> Date: Mon, 14 Sep 2020 17:21:51 +0000 Subject: [PATCH] add mixdepth information in the list of utxos returned by the showutxos command --- jmclient/jmclient/wallet_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jmclient/jmclient/wallet_utils.py b/jmclient/jmclient/wallet_utils.py index a7aa688..7ca8304 100644 --- a/jmclient/jmclient/wallet_utils.py +++ b/jmclient/jmclient/wallet_utils.py @@ -376,9 +376,11 @@ def wallet_showutxos(wallet_service, showprivkey): key = wallet_service.get_key_from_addr(av['address']) tries = podle.get_podle_tries(u, key, max_tries) tries_remaining = max(0, max_tries - tries) + mixdepth = wallet_service.wallet.get_details(av['path'])[0] unsp[us] = {'address': av['address'], 'value': av['value'], 'tries': tries, 'tries_remaining': tries_remaining, 'external': False, + 'mixdepth': mixdepth, 'confirmations': av['confs'], 'frozen': True if u in utxo_d else False} if showprivkey: