MCPcopy Create free account
hub / github.com/ElementsProject/lightning / get_chainhash

Function get_chainhash

gossipd/test/run-extended-info.c:172–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170};
171
172static 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
182static u8 *get_scid_array(const tal_t *ctx,
183 const char *test_vector,

Callers 3

test_query_channel_rangeFunction · 0.85
test_reply_channel_rangeFunction · 0.85

Calls 2

hex_decodeFunction · 0.85
json_get_memberFunction · 0.50

Tested by

no test coverage detected