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

Function json_to_short_channel_id_dir

common/json_parse.c:580–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578}
579
580bool json_to_short_channel_id_dir(const char *buffer, const jsmntok_t *tok,
581 struct short_channel_id_dir *scidd)
582{
583 jsmntok_t scidtok, numtok;
584
585 if (!split_tok(buffer, tok, '/', &scidtok, &numtok))
586 return false;
587
588 if (!json_to_short_channel_id(buffer, &scidtok, &scidd->scid))
589 return false;
590
591 if (!json_to_zero_or_one(buffer, &numtok, &scidd->dir))
592 return false;
593
594 return true;
595}
596
597bool json_to_txid(const char *buffer, const jsmntok_t *tok,
598 struct bitcoin_txid *txid)

Callers 3

param_route_hopsFunction · 0.50

Calls 3

split_tokFunction · 0.85
json_to_zero_or_oneFunction · 0.85
json_to_short_channel_idFunction · 0.70

Tested by

no test coverage detected