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

Function json_add_short_channel_id

common/json_stream.c:477–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477void json_add_short_channel_id(struct json_stream *response,
478 const char *fieldname,
479 struct short_channel_id scid)
480{
481 json_add_str_fmt(response, fieldname, "%dx%dx%d",
482 short_channel_id_blocknum(scid),
483 short_channel_id_txnum(scid),
484 short_channel_id_outnum(scid));
485}
486
487void json_add_short_channel_id_dir(struct json_stream *response,
488 const char *fieldname,

Callers 15

json_listfundsFunction · 0.85
NON_NULL_ARGSFunction · 0.85
set_channel_configFunction · 0.85
json_add_routefail_infoFunction · 0.85
json_add_blindedpathFunction · 0.85
json_listhtlcsFunction · 0.85
json_add_closed_channelFunction · 0.85
json_add_bolt11Function · 0.85
channels_refreshFunction · 0.85

Calls 4

json_add_str_fmtFunction · 0.85
short_channel_id_txnumFunction · 0.85
short_channel_id_outnumFunction · 0.85

Tested by

no test coverage detected