mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-22 15:44:20 +01:00
Update helpme to look for funds in an output's 'amount_msat' instead of 'value'
This commit is contained in:
committed by
Rusty Russell
parent
deb960a582
commit
fa567957ea
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user