| 1597 | } |
| 1598 | |
| 1599 | bool gossmap_chan_has_capacity(const struct gossmap_chan *chan, |
| 1600 | int direction, |
| 1601 | struct amount_msat amount) |
| 1602 | { |
| 1603 | if (amount_msat_less_fp16(amount, chan->half[direction].htlc_min)) |
| 1604 | return false; |
| 1605 | |
| 1606 | if (amount_msat_greater_fp16(amount, chan->half[direction].htlc_max)) |
| 1607 | return false; |
| 1608 | |
| 1609 | return true; |
| 1610 | } |
| 1611 | |
| 1612 | /* Get the announcement msg which created this chan */ |
| 1613 | u8 *gossmap_chan_get_announce(const tal_t *ctx, |
no test coverage detected