| 83 | } |
| 84 | |
| 85 | static struct bolt_file *get_bolt_files(const char *dir) |
| 86 | { |
| 87 | struct bolt_file *bolts = tal_arr(NULL, struct bolt_file, 0); |
| 88 | |
| 89 | if (!get_files(dir, ".", &bolts)) |
| 90 | err(1, "Opening BOLT dir %s", dir); |
| 91 | /* This currently does not exist. */ |
| 92 | get_files(dir, "early-drafts", &bolts); |
| 93 | return bolts; |
| 94 | } |
| 95 | |
| 96 | static char *find_bolt_ref(const char *prefix, char **p, size_t *len) |
| 97 | { |