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

Function accept_message

devtools/gossipwith.c:103–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103static bool accept_message(const u8 *msg)
104{
105 u16 type = fromwire_peektype(msg);
106 if (!accept_messages)
107 return true;
108 for (size_t i = 0; i < tal_count(accept_messages); i++) {
109 if (type == accept_messages[i])
110 return true;
111 }
112 return false;
113}
114
115static struct io_plan *simple_write(struct io_conn *conn,
116 const void *data, size_t len,

Callers 1

handshake_successFunction · 0.85

Calls 1

fromwire_peektypeFunction · 0.85

Tested by

no test coverage detected