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

Function custommsg_notification_serialize

lightningd/notification.c:139–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139static void custommsg_notification_serialize(struct json_stream *stream,
140 const struct node_id *peer_id,
141 const u8 *msg)
142{
143 json_add_node_id(stream, "peer_id", peer_id);
144 json_add_hex_talarr(stream, "payload", msg);
145}
146
147REGISTER_NOTIFICATION(custommsg);
148

Callers 1

notify_custommsgFunction · 0.85

Calls 2

json_add_node_idFunction · 0.85
json_add_hex_talarrFunction · 0.85

Tested by

no test coverage detected