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

Function printwire_u8_array

devtools/print_wire.c:268–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268bool printwire_u8_array(const char *fieldname, const u8 **cursor, size_t *plen, size_t len)
269{
270 if (streq(fieldname, "node_announcement.alias"))
271 return printwire_utf8_array(fieldname, cursor, plen, len);
272
273 if (streq(fieldname, "node_announcement.addresses"))
274 return printwire_addresses(cursor, plen, len);
275
276 if (strends(fieldname, ".encoded_short_ids"))
277 return printwire_encoded_short_ids(cursor, plen, len);
278
279 printf("[");
280 if (!print_hexstring(cursor, plen, len))
281 return false;
282 printf("]\n");
283 return true;
284}
285
286static const struct tlv_print_record_type *
287find_print_record_type(u64 type,

Callers

nothing calls this directly

Calls 5

printwire_utf8_arrayFunction · 0.85
printwire_addressesFunction · 0.85
strendsFunction · 0.85
print_hexstringFunction · 0.85

Tested by

no test coverage detected