| 216 | } |
| 217 | |
| 218 | void run(const uint8_t *data, size_t size) |
| 219 | { |
| 220 | char *invoice_str = to_string(tmpctx, data, size); |
| 221 | const char *fail = NULL; |
| 222 | |
| 223 | struct bolt11 *b11 = bolt11_decode(tmpctx, invoice_str, NULL, NULL, NULL, &fail); |
| 224 | if (b11) |
| 225 | bolt11_encode(tmpctx, b11, false, test_sign, NULL); |
| 226 | else |
| 227 | assert(fail); |
| 228 | |
| 229 | clean_tmpctx(); |
| 230 | } |
nothing calls this directly
no test coverage detected