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

Function json_to_channel_id

common/json_parse.c:594–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592}
593
594bool json_to_channel_id(const char *buffer, const jsmntok_t *tok,
595 struct channel_id *cid)
596{
597 return hex_decode(buffer + tok->start, tok->end - tok->start,
598 cid, sizeof(*cid));
599}
600
601bool json_to_coin_mvt_tag(const char *buffer, const jsmntok_t *tok,
602 enum mvt_tag *tag)

Callers 4

param_channel_idFunction · 0.70
fundchannel_complete_okFunction · 0.50
openchannel_init_okFunction · 0.50

Calls 1

hex_decodeFunction · 0.85

Tested by

no test coverage detected