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

Function match_type

channeld/channeld.c:317–324  ·  view source on GitHub ↗

Compare, with false if either is NULL */

Source from the content-addressed store, hash-verified

315
316/* Compare, with false if either is NULL */
317static bool match_type(const u8 *t1, const u8 *t2)
318{
319 /* Missing fields are possible. */
320 if (!t1 || !t2)
321 return false;
322
323 return featurebits_eq(t1, t2);
324}
325
326static void set_channel_type(struct channel *channel, const u8 *type)
327{

Callers 1

peer_reconnectFunction · 0.85

Calls 1

featurebits_eqFunction · 0.85

Tested by

no test coverage detected