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

Function peer_set_dbid

lightningd/peer_control.c:85–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void peer_set_dbid(struct peer *peer, u64 dbid)
86{
87 assert(!peer->dbid);
88 assert(dbid);
89 peer->dbid = dbid;
90 peer_dbid_map_add(peer->ld->peers_by_dbid, peer);
91}
92
93struct peer *new_peer(struct lightningd *ld, u64 dbid,
94 const struct node_id *id,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected