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

Function peer_by_id

lightningd/peer_control.c:188–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188struct peer *peer_by_id(struct lightningd *ld, const struct node_id *id)
189{
190 struct peer *p;
191
192 list_for_each(&ld->peers, p, list)
193 if (node_id_eq(&p->id, id))
194 return p;
195 return NULL;
196}
197
198struct peer *peer_from_json(struct lightningd *ld,
199 const char *buffer,

Callers 15

json_openchannel_initFunction · 0.85
json_queryratesFunction · 0.85
peer_channels_cleanupFunction · 0.85
peer_from_jsonFunction · 0.85
peer_connectedFunction · 0.85
peer_spokeFunction · 0.85
peer_disconnect_doneFunction · 0.85
json_listpeersFunction · 0.85
json_disconnectFunction · 0.85
json_sign_last_txFunction · 0.85
json_dev_failFunction · 0.85
json_dev_reenable_commitFunction · 0.85

Calls 1

node_id_eqFunction · 0.85

Tested by

no test coverage detected