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

Function find_peer_by_dbid

lightningd/peer_control.c:178–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178struct peer *find_peer_by_dbid(struct lightningd *ld, u64 dbid)
179{
180 struct peer *p;
181
182 list_for_each(&ld->peers, p, list)
183 if (p->dbid == dbid)
184 return p;
185 return NULL;
186}
187
188struct peer *peer_by_id(struct lightningd *ld, const struct node_id *id)
189{

Callers 1

wallet_stmt2channelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected