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

Function json_to_outpoint

common/json_parse.c:611–621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609}
610
611bool json_to_outpoint(const char *buffer, const jsmntok_t *tok,
612 struct bitcoin_outpoint *op)
613{
614 jsmntok_t t1, t2;
615
616 if (!split_tok(buffer, tok, ':', &t1, &t2))
617 return false;
618
619 return json_to_txid(buffer, &t1, &op->txid)
620 && json_to_u32(buffer, &t2, &op->n);
621}
622
623bool json_to_channel_id(const char *buffer, const jsmntok_t *tok,
624 struct channel_id *cid)

Callers 5

param_outpointFunction · 0.70
param_outpoint_arrFunction · 0.70
chain_eventsFunction · 0.50
init_descriptionsFunction · 0.50

Calls 3

split_tokFunction · 0.85
json_to_txidFunction · 0.70
json_to_u32Function · 0.50

Tested by

no test coverage detected