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

Function peer_by_id

lightningd/peer_control.c:194–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194struct peer *peer_by_id(struct lightningd *ld, const struct node_id *id)
195{
196 return peer_node_id_map_get(ld->peers, id);
197}
198
199struct peer *peer_from_json(struct lightningd *ld,
200 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