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

Function custommsg_payload_serialize

lightningd/connect_control.c:411–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411static void custommsg_payload_serialize(struct custommsg_payload *payload,
412 struct json_stream *stream,
413 struct plugin *plugin)
414{
415 json_add_hex_talarr(stream, "payload", payload->msg);
416 json_add_node_id(stream, "peer_id", &payload->peer_id);
417}
418
419REGISTER_PLUGIN_HOOK_INTFILTER(custommsg,
420 custommsg_cb,

Callers

nothing calls this directly

Calls 2

json_add_hex_talarrFunction · 0.85
json_add_node_idFunction · 0.85

Tested by

no test coverage detected