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