| 170 | }; |
| 171 | |
| 172 | static void get_chainhash(const char *test_vector, |
| 173 | const jsmntok_t *obj, |
| 174 | struct bitcoin_blkid *chain_hash) |
| 175 | { |
| 176 | const jsmntok_t *tok = json_get_member(test_vector, obj, "chainHash"); |
| 177 | size_t hexlen = tok->end - tok->start; |
| 178 | assert(hex_decode(test_vector + tok->start, hexlen, |
| 179 | chain_hash, sizeof(*chain_hash))); |
| 180 | } |
| 181 | |
| 182 | static u8 *get_scid_array(const tal_t *ctx, |
| 183 | const char *test_vector, |
no test coverage detected