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

Function json_to_outpoint

common/json_parse.c:582–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580}
581
582bool json_to_outpoint(const char *buffer, const jsmntok_t *tok,
583 struct bitcoin_outpoint *op)
584{
585 jsmntok_t t1, t2;
586
587 if (!split_tok(buffer, tok, ':', &t1, &t2))
588 return false;
589
590 return json_to_txid(buffer, &t1, &op->txid)
591 && json_to_u32(buffer, &t2, &op->n);
592}
593
594bool json_to_channel_id(const char *buffer, const jsmntok_t *tok,
595 struct channel_id *cid)

Callers 2

param_outpoint_arrFunction · 0.70
param_outpointFunction · 0.50

Calls 3

split_tokFunction · 0.85
json_to_txidFunction · 0.70
json_to_u32Function · 0.70

Tested by

no test coverage detected