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

Function encode_r

common/bolt11.c:1216–1225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1214}
1215
1216static void encode_r(u5 **data, const struct route_info *r)
1217{
1218 u8 *rinfo = tal_arr(NULL, u8, 0);
1219
1220 for (size_t i = 0; i < tal_count(r); i++)
1221 towire_route_info(&rinfo, &r[i]);
1222
1223 push_field(data, 'r', rinfo, tal_count(rinfo) * CHAR_BIT);
1224 tal_free(rinfo);
1225}
1226
1227static void maybe_encode_9(u5 **data, const u8 *features,
1228 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