Update helpme to look for funds in an output's 'amount_msat' instead of 'value'

This commit is contained in:
Michael Clancy
2022-08-25 14:25:12 +01:00
committed by Rusty Russell
parent deb960a582
commit fa567957ea

View File

@@ -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: elif len(funds) == 0 and len(channels) > 0:
r += "COMPLETE (all funds used for channels)" r += "COMPLETE (all funds used for channels)"
else: 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'])) if f['status'] == 'confirmed']))
r += "COMPLETE ({} a.k.a. {})".format(funds, funds.to_btc_str()) r += "COMPLETE ({} a.k.a. {})".format(funds, funds.to_btc_str())
stages['funds'] = True stages['funds'] = True