MCPcopy Create free account
hub / github.com/ElementsProject/lightning / encoding_start

Function encoding_start

connectd/queries.c:25–34  ·  view source on GitHub ↗

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 */

Source from the content-addressed store, hash-verified

23 * byte which allows for different encoding schemes to be defined in the future
24 */
25static u8 *encoding_start(const tal_t *ctx, bool prepend_encoding)
26{
27 u8 *ret;
28 if (prepend_encoding) {
29 ret = tal_arr(ctx, u8, 1);
30 ret[0] = ARR_UNCOMPRESSED;
31 } else
32 ret = tal_arr(ctx, u8, 0);
33 return ret;
34}
35
36/* Marshal a single short_channel_id */
37static void encoding_add_short_channel_id(u8 **encoded,

Callers 1

send_reply_channel_rangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected