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

Function json_add_outpoint

common/json_stream.c:444–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444void json_add_outpoint(struct json_stream *result, const char *fieldname,
445 const struct bitcoin_outpoint *out)
446{
447 char hex[hex_str_size(sizeof(out->txid))];
448 bitcoin_txid_to_hex(&out->txid, hex, sizeof(hex));
449 json_add_str_fmt(result, fieldname, "%s:%d", hex, out->n);
450}
451
452void json_add_short_channel_id(struct json_stream *response,
453 const char *fieldname,

Callers 3

txprepare_continueFunction · 0.85
json_add_chain_eventFunction · 0.85
json_add_income_eventFunction · 0.85

Calls 3

hex_str_sizeFunction · 0.85
bitcoin_txid_to_hexFunction · 0.85
json_add_str_fmtFunction · 0.70

Tested by

no test coverage detected