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

Function node_id_idx

common/node_id.h:41–45  ·  view source on GitHub ↗

If the two nodes[] are id1 and id2, which index would id1 be? */

Source from the content-addressed store, hash-verified

39
40/* If the two nodes[] are id1 and id2, which index would id1 be? */
41static inline int node_id_idx(const struct node_id *id1,
42 const struct node_id *id2)
43{
44 return node_id_cmp(id1, id2) > 0;
45}
46
47/* marshal/unmarshal functions */
48void towire_node_id(u8 **pptr, const struct node_id *id);

Callers 11

new_chanFunction · 0.85
init_channelFunction · 0.85
new_peerFunction · 0.85
json_add_channelFunction · 0.85
local_routing_failureFunction · 0.85
remote_routing_failureFunction · 0.85
send_payment_coreFunction · 0.85
update_connectionFunction · 0.85
update_connectionFunction · 0.85
update_connectionFunction · 0.85

Calls 1

node_id_cmpFunction · 0.70

Tested by 3

update_connectionFunction · 0.68
update_connectionFunction · 0.68
update_connectionFunction · 0.68