| 131 | } |
| 132 | |
| 133 | static void print_malformed_tlv(const char *hrp, |
| 134 | const char *hex, |
| 135 | const char *reason) |
| 136 | { |
| 137 | u8 *data = tal_hexdata(tmpctx, hex, strlen(hex)); |
| 138 | assert(data); |
| 139 | printf(",{\"description\": \"%s\", \"valid\": false, \"bolt12\": \"%s\"}", |
| 140 | reason, to_bech32_charset(tmpctx, hrp, data)); |
| 141 | } |
| 142 | |
| 143 | static void print_invalid_offer(const struct tlv_offer *offer, const char *why) |
| 144 | { |
no test coverage detected