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

Function encode_r

common/bolt11.c:1061–1070  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1059}
1060
1061static void encode_r(u5 **data, const struct route_info *r)
1062{
1063 u8 *rinfo = tal_arr(NULL, u8, 0);
1064
1065 for (size_t i = 0; i < tal_count(r); i++)
1066 towire_route_info(&rinfo, &r[i]);
1067
1068 push_field(data, 'r', rinfo, tal_count(rinfo) * CHAR_BIT);
1069 tal_free(rinfo);
1070}
1071
1072static void maybe_encode_9(u5 **data, const u8 *features,
1073 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