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

Function notify_channel_state_changed

lightningd/notification.c:329–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329REGISTER_NOTIFICATION(channel_state_changed)
330
331void notify_channel_state_changed(struct lightningd *ld,
332 const struct node_id *peer_id,
333 const struct channel_id *cid,
334 const struct short_channel_id *scid,
335 struct timeabs timestamp,
336 enum channel_state old_state,
337 enum channel_state new_state,
338 enum state_change cause,
339 const char *message)
340{
341 struct jsonrpc_notification *n = notify_start(ld, "channel_state_changed");
342 if (!n)
343 return;
344 channel_state_changed_notification_serialize(n->stream, ld, peer_id, cid, scid, timestamp, old_state, new_state, cause, message);
345 notify_send(ld, n);
346}
347
348static void forward_event_notification_serialize(struct json_stream *stream,
349 const struct htlc_in *in,

Callers 5

wallet_commit_channelFunction · 0.70
delete_channelFunction · 0.70
channel_set_stateFunction · 0.70
wallet_commit_channelFunction · 0.70

Calls 3

notify_startFunction · 0.85
notify_sendFunction · 0.85

Tested by

no test coverage detected