fix: use correct field from response (old one got removed) (#1999)

This commit is contained in:
jackstar12 2023-10-06 17:13:22 +02:00 committed by GitHub
parent 9f847ffcad
commit 6e5fbb92e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,7 +247,9 @@ class CoreLightningNode(Node):
backend_name="CLN",
alias=info["alias"],
color=info["color"],
onchain_balance_sat=sum(output["value"] for output in funds["outputs"]),
onchain_balance_sat=sum(
output["amount_msat"] / 1000 for output in funds["outputs"]
),
onchain_confirmed_sat=sum(
output["amount_msat"] / 1000
for output in funds["outputs"]