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

Function is_unknown_msg_discardable

wire/peer_wire.c:127–131  ·  view source on GitHub ↗

Return true if it's an unknown ODD message. cursor is a tal ptr. */

Source from the content-addressed store, hash-verified

125
126/* Return true if it's an unknown ODD message. cursor is a tal ptr. */
127bool is_unknown_msg_discardable(const u8 *cursor)
128{
129 enum peer_wire t = fromwire_peektype(cursor);
130 return unknown_type(t) && (t & 1);
131}
132
133/* Returns true if the message type should be handled by CLN's core */
134bool peer_wire_is_internal(enum peer_wire type)

Callers 4

peer_init_receivedFunction · 0.50
read_next_msgFunction · 0.50
opening_negotiate_msgFunction · 0.50
opening_negotiate_msgFunction · 0.50

Calls 2

fromwire_peektypeFunction · 0.85
unknown_typeFunction · 0.85

Tested by

no test coverage detected