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

Function notify_channel_opened

lightningd/notification.c:273–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273REGISTER_NOTIFICATION(channel_opened)
274
275void notify_channel_opened(struct lightningd *ld,
276 const struct node_id *node_id,
277 const struct amount_sat *funding_sat,
278 const struct bitcoin_txid *funding_txid,
279 bool channel_ready)
280{
281 struct jsonrpc_notification *n = notify_start(ld, "channel_opened");
282 if (!n)
283 return;
284 channel_opened_notification_serialize(n->stream, ld, node_id, funding_sat, funding_txid, channel_ready);
285 notify_send(ld, n);
286}
287
288/* Don't use this: omit fields instead! */
289static void json_add_null(struct json_stream *stream, const char *fieldname)

Callers 3

handle_peer_tx_sigs_sentFunction · 0.85
handle_peer_tx_sigs_msgFunction · 0.85
opening_fundee_finishedFunction · 0.85

Calls 3

notify_startFunction · 0.85
notify_sendFunction · 0.85

Tested by

no test coverage detected