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

Function set_custommsgs

connectd/multiplex.c:826–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824}
825
826void set_custommsgs(struct daemon *daemon, const u8 *msg)
827{
828 tal_free(daemon->custom_msgs);
829 if (!fromwire_connectd_set_custommsgs(daemon, msg, &daemon->custom_msgs))
830 master_badmsg(WIRE_CONNECTD_SET_CUSTOMMSGS, msg);
831 status_debug("Now allowing %zu custom message types",
832 tal_count(daemon->custom_msgs));
833}
834
835void send_custommsg(struct daemon *daemon, const u8 *msg)
836{

Callers 1

recv_reqFunction · 0.85

Calls 2

tal_freeFunction · 0.85
master_badmsgFunction · 0.50

Tested by

no test coverage detected