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

Function encode_r

common/bolt11.c:1208–1217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1206}
1207
1208static void encode_r(u5 **data, const struct route_info *r)
1209{
1210 u8 *rinfo = tal_arr(NULL, u8, 0);
1211
1212 for (size_t i = 0; i < tal_count(r); i++)
1213 towire_route_info(&rinfo, &r[i]);
1214
1215 push_field(data, 'r', rinfo, tal_count(rinfo) * CHAR_BIT);
1216 tal_free(rinfo);
1217}
1218
1219static void maybe_encode_9(u5 **data, const u8 *features,
1220 bool have_payment_metadata)

Callers 1

bolt11_encode_Function · 0.85

Calls 3

towire_route_infoFunction · 0.85
push_fieldFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected