From fa567957ea6f1f2cd30d938516b7c16b5c7f560b Mon Sep 17 00:00:00 2001 From: Michael Clancy Date: Thu, 25 Aug 2022 14:25:12 +0100 Subject: [PATCH] Update helpme to look for funds in an output's 'amount_msat' instead of 'value' --- helpme/helpme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpme/helpme.py b/helpme/helpme.py index fed35d1..825dd35 100755 --- a/helpme/helpme.py +++ b/helpme/helpme.py @@ -454,7 +454,7 @@ node! Be prepared to lose your funds (but please report a bug if you do!) elif len(funds) == 0 and len(channels) > 0: r += "COMPLETE (all funds used for channels)" else: - funds = Millisatoshi(1000 * sum([f['value'] for f in funds + funds = Millisatoshi(sum([f['amount_msat'] for f in funds if f['status'] == 'confirmed'])) r += "COMPLETE ({} a.k.a. {})".format(funds, funds.to_btc_str()) stages['funds'] = True