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

Function feature_negotiated

common/features.c:358–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358bool feature_negotiated(const struct feature_set *our_features,
359 const u8 *their_features, size_t f)
360{
361 return feature_offered(their_features, f)
362 && feature_offered(our_features->bits[INIT_FEATURE], f);
363}
364
365bool feature_check_depends(const u8 *their_features,
366 size_t *depender, size_t *missing_dependency)

Callers 15

default_channel_typeFunction · 0.70
setup_peer_gossip_storeFunction · 0.50
peer_connectedFunction · 0.50
handle_peer_shutdownFunction · 0.50
peer_reconnectFunction · 0.50
compute_mfc_allFunction · 0.50
connect_okFunction · 0.50
setup_channel_funderFunction · 0.50
funder_channel_startFunction · 0.50
fundee_channelFunction · 0.50

Calls 1

feature_offeredFunction · 0.70

Tested by

no test coverage detected