lightningd: fix funding_locked in channel_opened notification.

Previously, "funding_locked" was always "true"!

(It's actually been wrong since its introduction in v0.7.3!)

Changelog-Fixed: Plugins: `channel_opened` notification `funding_locked` field is now accurate: was always `true`.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-08-03 10:43:10 +09:30
parent 498f9b75f2
commit 645b1b505b
4 changed files with 7 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ void notify_invoice_creation(struct lightningd *ld, struct amount_msat *amount,
void notify_channel_opened(struct lightningd *ld, struct node_id *node_id,
struct amount_sat *funding_sat, struct bitcoin_txid *funding_txid,
bool *funding_locked);
bool funding_locked);
void notify_channel_state_changed(struct lightningd *ld,
struct node_id *peer_id,