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

Function notify_custommsg

lightningd/notification.c:149–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147REGISTER_NOTIFICATION(custommsg);
148
149void notify_custommsg(struct lightningd *ld,
150 const struct node_id *peer_id,
151 const u8 *msg)
152{
153 struct jsonrpc_notification *n = notify_start(ld, "custommsg");
154 if (!n)
155 return;
156 custommsg_notification_serialize(n->stream, peer_id, msg);
157 notify_send(ld, n);
158}
159
160static void onionmessage_forward_fail_serialize(struct json_stream *stream,
161 const struct node_id *source,

Callers 1

handle_custommsg_inFunction · 0.85

Calls 3

notify_startFunction · 0.85
notify_sendFunction · 0.85

Tested by

no test coverage detected