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

Function feature_is_set

common/features.c:328–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328bool feature_is_set(const u8 *features, size_t bit)
329{
330 size_t bytenum = bit / 8;
331
332 if (bytenum >= tal_count(features))
333 return false;
334
335 return test_bit(features, bytenum, bit % 8);
336}
337
338bool feature_offered(const u8 *features, size_t f)
339{

Callers 15

htlc_set_add_Function · 0.85
invoice_check_paymentFunction · 0.85
maybe_encode_9Function · 0.85
channel_type_acceptFunction · 0.85
channel_type_nameFunction · 0.85
feature_set_orFunction · 0.85
feature_set_subFunction · 0.85
feature_offeredFunction · 0.85
featurebits_eqFunction · 0.85
fmt_featurebitsFunction · 0.85
mainFunction · 0.85

Calls 1

test_bitFunction · 0.85

Tested by 1

mainFunction · 0.68