MCPcopy Create free account
hub / github.com/ElementsProject/lightning / notify_channel_opened

Function notify_channel_opened

lightningd/notification.c:219–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217 channel_opened_notification_serialize)
218
219void notify_channel_opened(struct lightningd *ld, struct node_id *node_id,
220 struct amount_sat *funding_sat, struct bitcoin_txid *funding_txid,
221 bool channel_ready)
222{
223 void (*serialize)(struct json_stream *,
224 struct node_id *,
225 struct amount_sat *,
226 struct bitcoin_txid *,
227 bool) = channel_opened_notification_gen.serialize;
228
229 struct jsonrpc_notification *n
230 = jsonrpc_notification_start(NULL, channel_opened_notification_gen.topic);
231 serialize(n->stream, node_id, funding_sat, funding_txid, channel_ready);
232 jsonrpc_notification_end(n);
233 plugins_notify(ld->plugins, take(n));
234}
235
236static void channel_state_changed_notification_serialize(struct json_stream *stream,
237 struct node_id *peer_id,

Callers 3

handle_peer_tx_sigs_sentFunction · 0.85
handle_peer_tx_sigs_msgFunction · 0.85
opening_fundee_finishedFunction · 0.85

Calls 3

jsonrpc_notification_endFunction · 0.85
plugins_notifyFunction · 0.85

Tested by

no test coverage detected