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

Function featurebits_unset

common/features.c:524–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524void featurebits_unset(u8 **ptr, size_t bit)
525{
526 size_t len = tal_count(*ptr);
527 if (bit / 8 >= len)
528 return;
529
530 (*ptr)[len - 1 - bit / 8] &= (0 << (bit % 8));
531
532 trim_features(ptr);
533}
534
535bool featurebits_eq(const u8 *f1, const u8 *f2)
536{

Callers 1

channel_type_acceptFunction · 0.85

Calls 1

trim_featuresFunction · 0.85

Tested by

no test coverage detected