| 86 | } |
| 87 | |
| 88 | static 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 | |
| 97 | static void print_valid_offer(const struct tlv_offer *offer, |
| 98 | const char *testdesc, |
no test coverage detected