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

Function featurebits_eq

common/features.c:535–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533}
534
535bool featurebits_eq(const u8 *f1, const u8 *f2)
536{
537 size_t len = tal_bytelen(f1);
538
539 if (tal_bytelen(f2) > len)
540 len = tal_bytelen(f2);
541
542 for (size_t i = 0; i < len * 8; i++) {
543 if (feature_is_set(f1, i) != feature_is_set(f2, i))
544 return false;
545 }
546 return true;
547}
548
549struct feature_set *fromwire_feature_set(const tal_t *ctx,
550 const u8 **cursor, size_t *max)

Callers 4

match_typeFunction · 0.85
set_channel_typeFunction · 0.85
channel_type_eqFunction · 0.85
funder_channel_startFunction · 0.85

Calls 2

tal_bytelenFunction · 0.85
feature_is_setFunction · 0.70

Tested by

no test coverage detected