| 426 | } |
| 427 | |
| 428 | static u8 *stream(const tal_t *ctx, const char *hex) |
| 429 | { |
| 430 | size_t i, j; |
| 431 | char *str = tal_arr(tmpctx, char, strlen(hex) + 1); |
| 432 | |
| 433 | /* Remove spaces and use normal helper */ |
| 434 | for (i = j = 0; i <= strlen(hex); i++) { |
| 435 | if (hex[i] != ' ') |
| 436 | str[j++] = hex[i]; |
| 437 | } |
| 438 | return tal_hexdata(ctx, str, strlen(str)); |
| 439 | } |
| 440 | |
| 441 | static u8 *stream2(const tal_t *ctx, const char *hex1, const char *hex2) |
| 442 | { |
no test coverage detected