| 1108 | } |
| 1109 | |
| 1110 | bool 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 */ |
| 1124 | u8 *gossmap_chan_get_announce(const tal_t *ctx, |
no test coverage detected