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

Function printwire_u8_array

devtools/print_wire.c:217–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217bool printwire_u8_array(const char *fieldname, const u8 **cursor, size_t *plen, size_t len)
218{
219 if (streq(fieldname, "node_announcement.alias"))
220 return printwire_utf8_array(fieldname, cursor, plen, len);
221
222 if (streq(fieldname, "node_announcement.addresses"))
223 return printwire_addresses(cursor, plen, len);
224
225 if (strends(fieldname, ".encoded_short_ids"))
226 return printwire_encoded_short_ids(cursor, plen, len);
227
228 printf("[");
229 if (!print_hexstring(cursor, plen, len))
230 return false;
231 printf("]\n");
232 return true;
233}
234
235static const struct tlv_print_record_type *
236find_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