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

Function peer_by_id

lightningd/peer_control.c:187–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187struct peer *peer_by_id(struct lightningd *ld, const struct node_id *id)
188{
189 return peer_node_id_map_get(ld->peers, id);
190}
191
192struct peer *peer_from_json(struct lightningd *ld,
193 const char *buffer,

Callers 15

json_openchannel_initFunction · 0.85
json_queryratesFunction · 0.85
peer_from_jsonFunction · 0.85
handle_peer_connectedFunction · 0.85
handle_peer_spokeFunction · 0.85
peer_disconnectedFunction · 0.85
json_listpeersFunction · 0.85
json_listpeerchannelsFunction · 0.85
param_peerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected