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

Function subd_send_msg

lightningd/subd.c:845–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843}
844
845void subd_send_msg(struct subd *sd, const u8 *msg_out)
846{
847 u16 type = fromwire_peektype(msg_out);
848 /* FIXME: We should use unique upper bits for each daemon, then
849 * have generate-wire.py add them, just assert here. */
850 if (strstarts(sd->msgname(type), "UNKNOWN"))
851 fatal("Sending %s an invalid message %s", sd->name, tal_hex(tmpctx, msg_out));
852 msg_enqueue(sd->outq, msg_out);
853}
854
855void subd_send_fd(struct subd *sd, int fd)
856{

Callers 15

msg_to_peerFunction · 0.70
hook_extract_psbtFunction · 0.70
hook_extract_amountFunction · 0.70
rbf_channel_hook_cbFunction · 0.70
openchannel2_hook_cbFunction · 0.70
dualopend_tell_depthFunction · 0.70
handle_peer_tx_sigs_sentFunction · 0.70
rbf_got_offerFunction · 0.70

Calls 4

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

Tested by

no test coverage detected