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

Function peer_wire_is_internal

wire/peer_wire.c:148–159  ·  view source on GitHub ↗

Returns true if the message type should be handled by CLN's core */

Source from the content-addressed store, hash-verified

146
147/* Returns true if the message type should be handled by CLN's core */
148bool peer_wire_is_internal(enum peer_wire type)
149{
150 /* Unknown messages are not handled by CLN */
151 if (!peer_wire_is_defined(type))
152 return false;
153
154 /* handled by pluigns */
155 if (type == WIRE_PEER_STORAGE || type == WIRE_PEER_STORAGE_RETRIEVAL)
156 return false;
157
158 return true;
159}
160
161/* Extract channel_id from various packets, return true if possible. */
162bool extract_channel_id(const u8 *in_pkt, struct channel_id *channel_id)

Callers 2

handle_custommsgFunction · 0.85
json_sendcustommsgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected