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

Function peer_wire_is_internal

wire/peer_wire.c:134–145  ·  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

132
133/* Returns true if the message type should be handled by CLN's core */
134bool peer_wire_is_internal(enum peer_wire type)
135{
136 /* Unknown messages are not handled by CLN */
137 if (!peer_wire_is_defined(type))
138 return false;
139
140 /* handled by pluigns */
141 if (type == WIRE_PEER_STORAGE || type == WIRE_PEER_STORAGE_RETRIEVAL)
142 return false;
143
144 return true;
145}
146
147/* Extract channel_id from various packets, return true if possible. */
148bool 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