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