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

Function set_custommsgs

connectd/multiplex.c:740–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738}
739
740void set_custommsgs(struct daemon *daemon, const u8 *msg)
741{
742 tal_free(daemon->custom_msgs);
743 if (!fromwire_connectd_set_custommsgs(daemon, msg, &daemon->custom_msgs))
744 master_badmsg(WIRE_CONNECTD_SET_CUSTOMMSGS, msg);
745 status_debug("Now allowing %zu custom message types",
746 tal_count(daemon->custom_msgs));
747}
748
749void send_custommsg(struct daemon *daemon, const u8 *msg)
750{

Callers 1

recv_reqFunction · 0.85

Calls 2

tal_freeFunction · 0.85
master_badmsgFunction · 0.50

Tested by

no test coverage detected