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

Function set_preferred_peer

gossipd/seeker.c:170–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170static void set_preferred_peer(struct seeker *seeker, struct peer *peer)
171{
172 seeker->preferred_peer = peer;
173}
174
175/* Get a random peer, but try our preferred peer first, if any. This
176 * biasses us to the peer that told us of unexpected gossip. */

Callers 4

nodeannounce_query_doneFunction · 0.85
check_timestampsFunction · 0.85
add_unknown_scidFunction · 0.85
query_unknown_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected