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

Function featurebits_eq

common/features.c:549–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547}
548
549bool featurebits_eq(const u8 *f1, const u8 *f2)
550{
551 size_t len = tal_bytelen(f1);
552
553 if (tal_bytelen(f2) > len)
554 len = tal_bytelen(f2);
555
556 for (size_t i = 0; i < len * 8; i++) {
557 if (feature_is_set(f1, i) != feature_is_set(f2, i))
558 return false;
559 }
560 return true;
561}
562
563struct feature_set *fromwire_feature_set(const tal_t *ctx,
564 const u8 **cursor, size_t *max)

Callers 3

channel_type_eqFunction · 0.85
funder_channel_startFunction · 0.85
opener_startFunction · 0.85

Calls 2

tal_bytelenFunction · 0.85
feature_is_setFunction · 0.85

Tested by

no test coverage detected