mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-03 22:34:21 +01:00
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:
@@ -201,7 +201,7 @@ static void channel_opened_notification_serialize(struct json_stream *stream,
|
||||
struct node_id *node_id,
|
||||
struct amount_sat *funding_sat,
|
||||
struct bitcoin_txid *funding_txid,
|
||||
bool *funding_locked)
|
||||
bool funding_locked)
|
||||
{
|
||||
json_object_start(stream, "channel_opened");
|
||||
json_add_node_id(stream, "id", node_id);
|
||||
@@ -216,13 +216,13 @@ REGISTER_NOTIFICATION(channel_opened,
|
||||
|
||||
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 (*serialize)(struct json_stream *,
|
||||
struct node_id *,
|
||||
struct amount_sat *,
|
||||
struct bitcoin_txid *,
|
||||
bool *) = channel_opened_notification_gen.serialize;
|
||||
bool) = channel_opened_notification_gen.serialize;
|
||||
|
||||
struct jsonrpc_notification *n
|
||||
= jsonrpc_notification_start(NULL, channel_opened_notification_gen.topic);
|
||||
|
||||
Reference in New Issue
Block a user