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

Function feature_is_set

common/features.c:342–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342bool feature_is_set(const u8 *features, size_t bit)
343{
344 size_t bytenum = bit / 8;
345
346 if (bytenum >= tal_count(features))
347 return false;
348
349 return test_bit(features, bytenum, bit % 8);
350}
351
352bool feature_offered(const u8 *features, size_t f)
353{

Callers 12

maybe_encode_9Function · 0.70
channel_type_acceptFunction · 0.70
feature_set_orFunction · 0.70
feature_set_subFunction · 0.70
feature_offeredFunction · 0.70
features_unsupportedFunction · 0.70
featurebits_eqFunction · 0.70
fmt_featurebitsFunction · 0.70
mainFunction · 0.50
print_featuresFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls 1

test_bitFunction · 0.85

Tested by 1

mainFunction · 0.40