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

Function subd_send_msg

lightningd/subd.c:834–842  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

832}
833
834void subd_send_msg(struct subd *sd, const u8 *msg_out)
835{
836 u16 type = fromwire_peektype(msg_out);
837 /* FIXME: We should use unique upper bits for each daemon, then
838 * have generate-wire.py add them, just assert here. */
839 if (strstarts(sd->msgname(type), "INVALID"))
840 fatal("Sending %s an invalid message %s", sd->name, tal_hex(tmpctx, msg_out));
841 msg_enqueue(sd->outq, msg_out);
842}
843
844void subd_send_fd(struct subd *sd, int fd)
845{

Callers 15

hook_extract_psbtFunction · 0.70
hook_extract_amountFunction · 0.70
rbf_channel_hook_cbFunction · 0.70
openchannel2_hook_cbFunction · 0.70
handle_peer_tx_sigs_sentFunction · 0.70
dualopen_tell_depthFunction · 0.70
rbf_got_offerFunction · 0.70
accepter_got_offerFunction · 0.70

Calls 4

tal_hexFunction · 0.85
msg_enqueueFunction · 0.85
fatalFunction · 0.70
fromwire_peektypeFunction · 0.50

Tested by

no test coverage detected