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

Function gossmap_chan_htlc_max

common/gossmap.h:257–261  ·  view source on GitHub ↗

Convenience routines to get htlc min/max as amount_msat */

Source from the content-addressed store, hash-verified

255
256/* Convenience routines to get htlc min/max as amount_msat */
257static inline struct amount_msat
258gossmap_chan_htlc_max(const struct gossmap_chan *chan, const int dir)
259{
260 return amount_msat(fp16_to_u64(chan->half[dir].htlc_max));
261}
262
263static inline struct amount_msat
264gossmap_chan_htlc_min(const struct gossmap_chan *chan, const int dir)

Callers 6

linearize_channelFunction · 0.85
route_check_constraintsFunction · 0.85
linearize_channelFunction · 0.85
get_flow_pathsFunction · 0.85
flow_maximum_deliverableFunction · 0.85

Calls 2

fp16_to_u64Function · 0.85
amount_msatClass · 0.70

Tested by

no test coverage detected