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

Function featurebits_unset

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

Source from the content-addressed store, hash-verified

536}
537
538void featurebits_unset(u8 **ptr, size_t bit)
539{
540 size_t len = tal_count(*ptr);
541 if (bit / 8 >= len)
542 return;
543
544 (*ptr)[len - 1 - bit / 8] &= (0 << (bit % 8));
545
546 trim_features(ptr);
547}
548
549bool featurebits_eq(const u8 *f1, const u8 *f2)
550{

Callers 1

channel_type_acceptFunction · 0.85

Calls 1

trim_featuresFunction · 0.85

Tested by

no test coverage detected