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

Function feature_offered

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

Source from the content-addressed store, hash-verified

336}
337
338bool feature_offered(const u8 *features, size_t f)
339{
340 return feature_is_set(features, COMPULSORY_FEATURE(f))
341 || feature_is_set(features, OPTIONAL_FEATURE(f));
342}
343
344bool feature_negotiated(const struct feature_set *our_features,
345 const u8 *their_features, size_t f)

Callers 15

use_uniform_writesFunction · 0.85
handle_onion_messageFunction · 0.85
init_channelFunction · 0.85
json_feeratesFunction · 0.85
json_closeFunction · 0.85
json_fundchannel_startFunction · 0.85
json_injectonionmessageFunction · 0.85
hsm_initFunction · 0.85
handle_initFunction · 0.85
channel_type_hasFunction · 0.85
channel_type_has_anchorsFunction · 0.85
channel_type_acceptFunction · 0.85

Calls 1

feature_is_setFunction · 0.85

Tested by 1

mainFunction · 0.68