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

Function gossmap_chan_set

common/gossmap.h:118–121  ·  view source on GitHub ↗

Do we have any values for this halfchannel ? */

Source from the content-addressed store, hash-verified

116
117/* Do we have any values for this halfchannel ? */
118static inline bool gossmap_chan_set(const struct gossmap_chan *chan, int dir)
119{
120 return chan->cupdate_off[dir] != 0;
121}
122
123/* Return capacity if it's known (fails only on race condition, or a local mod) */
124bool gossmap_chan_get_capacity(const struct gossmap *map,

Callers 5

mainFunction · 0.85
json_add_halfchanFunction · 0.85
channel_usableFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68