| 446 | } |
| 447 | |
| 448 | static const u64 *read_template(const tal_t *ctx, gzFile inf, const char *what) |
| 449 | { |
| 450 | size_t count = read_bigsize(inf); |
| 451 | u64 *template = tal_arr(ctx, u64, count); |
| 452 | |
| 453 | for (size_t i = 0; i < count; i++) |
| 454 | template[i] = read_bigsize(inf); |
| 455 | |
| 456 | if (verbose) |
| 457 | printf("%zu unique %s\n", count, what); |
| 458 | |
| 459 | return template; |
| 460 | } |
| 461 | |
| 462 | static u64 read_val(gzFile inf, const u64 *template) |
| 463 | { |