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

Function gossmap_chan_capacity

common/gossmap.c:1110–1121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1108}
1109
1110bool gossmap_chan_capacity(const struct gossmap_chan *chan,
1111 int direction,
1112 struct amount_msat amount)
1113{
1114 if (amount_msat_less_fp16(amount, chan->half[direction].htlc_min))
1115 return false;
1116
1117 if (amount_msat_greater_fp16(amount, chan->half[direction].htlc_max))
1118 return false;
1119
1120 return true;
1121}
1122
1123/* Get the announcement msg which created this chan */
1124u8 *gossmap_chan_get_announce(const tal_t *ctx,

Callers 1

Calls 2

amount_msat_less_fp16Function · 0.85
amount_msat_greater_fp16Function · 0.85

Tested by

no test coverage detected