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

Function is_chan_public

gossipd/routing.h:70–73  ·  view source on GitHub ↗

A local channel can exist which isn't announced: we abuse timestamp * to indicate this. */

Source from the content-addressed store, hash-verified

68/* A local channel can exist which isn't announced: we abuse timestamp
69 * to indicate this. */
70static inline bool is_chan_public(const struct chan *chan)
71{
72 return chan->bcast.timestamp != 0;
73}
74
75static inline bool is_halfchan_defined(const struct half_chan *hc)
76{

Callers 14

get_unannounced_nodesFunction · 0.85
apply_updateFunction · 0.85
gather_rangeFunction · 0.85
node_has_public_channelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected