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

Function print_field

common/test/run-bolt12-encode-test.c:88–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88static void print_field(bool first, const struct tlv_field *field)
89{
90 printf("%s{\"type\": %"PRIu64", \"length\": %zu, \"hex\": \"%s\"}",
91 first ? "": ",",
92 field->numtype,
93 field->length,
94 tal_hexstr(tmpctx, field->value, field->length));
95}
96
97static void print_valid_offer(const struct tlv_offer *offer,
98 const char *testdesc,

Callers 1

print_valid_offerFunction · 0.85

Calls 1

tal_hexstrFunction · 0.85

Tested by

no test coverage detected