| 1675 | } |
| 1676 | |
| 1677 | u8 *gossmap_chan_get_features(const tal_t *ctx, |
| 1678 | const struct gossmap *map, |
| 1679 | const struct gossmap_chan *c) |
| 1680 | { |
| 1681 | u8 *ret; |
| 1682 | /* Note that first two bytes are message type */ |
| 1683 | const u64 feature_len_off = 2 + (64 + 64 + 64 + 64); |
| 1684 | size_t feature_len; |
| 1685 | |
| 1686 | feature_len = map_be16(map, c->cann_off + feature_len_off); |
| 1687 | ret = tal_arr(ctx, u8, feature_len); |
| 1688 | |
| 1689 | map_copy(map, c->cann_off + feature_len_off + 2, ret, feature_len); |
| 1690 | return ret; |
| 1691 | } |
| 1692 | |
| 1693 | /* Return the channel_update (or NULL if !gossmap_chan_set) */ |
| 1694 | u8 *gossmap_chan_get_update(const tal_t *ctx, |