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

Function feature_negotiated

common/features.c:344–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344bool feature_negotiated(const struct feature_set *our_features,
345 const u8 *their_features, size_t f)
346{
347 return feature_offered(their_features, f)
348 && feature_offered(our_features->bits[INIT_FEATURE], f);
349}
350
351bool feature_check_depends(const u8 *their_features,
352 size_t *depender, size_t *missing_dependency)

Callers 15

peer_connectedFunction · 0.85
handle_stfuFunction · 0.85
send_commit_partFunction · 0.85
handle_peer_shutdownFunction · 0.85
peer_reconnectFunction · 0.85
json_add_unsaved_channelFunction · 0.85
wallet_commit_channelFunction · 0.85
rbf_got_offerFunction · 0.85
accepter_got_offerFunction · 0.85
json_openchannel_bumpFunction · 0.85

Calls 1

feature_offeredFunction · 0.85

Tested by

no test coverage detected