BOLT #7: * * There are several messages which contain a long array of * `short_channel_id`s (called `encoded_short_ids`) so we include an encoding * byte which allows for different encoding schemes to be defined in the future */
| 14 | * byte which allows for different encoding schemes to be defined in the future |
| 15 | */ |
| 16 | static u8 *encoding_start(const tal_t *ctx, bool prepend_encoding) |
| 17 | { |
| 18 | u8 *ret; |
| 19 | if (prepend_encoding) { |
| 20 | ret = tal_arr(ctx, u8, 1); |
| 21 | ret[0] = ARR_UNCOMPRESSED; |
| 22 | } else |
| 23 | ret = tal_arr(ctx, u8, 0); |
| 24 | return ret; |
| 25 | } |
| 26 | |
| 27 | /* Marshal a single short_channel_id */ |
| 28 | static void encoding_add_short_channel_id(u8 **encoded, |
no outgoing calls