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

Function is_unknown_msg_discardable

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

139
140/* Return true if it's an unknown ODD message. cursor is a tal ptr. */
141bool is_unknown_msg_discardable(const u8 *cursor)
142{
143 enum peer_wire t = fromwire_peektype(cursor);
144 return unknown_type(t) && (t & 1);
145}
146
147/* Returns true if the message type should be handled by CLN's core */
148bool 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