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

Function is_unknown_msg_discardable

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

109
110/* Return true if it's an unknown ODD message. cursor is a tal ptr. */
111bool is_unknown_msg_discardable(const u8 *cursor)
112{
113 enum peer_wire t = fromwire_peektype(cursor);
114 return unknown_type(t) && (t & 1);
115}
116
117/* Extract channel_id from various packets, return true if possible. */
118bool extract_channel_id(const u8 *in_pkt, struct channel_id *channel_id)

Callers 3

peer_init_receivedFunction · 0.50
opening_negotiate_msgFunction · 0.50
opening_negotiate_msgFunction · 0.50

Calls 2

unknown_typeFunction · 0.85
fromwire_peektypeFunction · 0.70

Tested by

no test coverage detected