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

Function json_add_short_channel_id

common/json_stream.c:452–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452void json_add_short_channel_id(struct json_stream *response,
453 const char *fieldname,
454 const struct short_channel_id *scid)
455{
456 json_add_str_fmt(response, fieldname, "%dx%dx%d",
457 short_channel_id_blocknum(scid),
458 short_channel_id_txnum(scid),
459 short_channel_id_outnum(scid));
460}
461
462void json_add_address(struct json_stream *response, const char *fieldname,
463 const struct wireaddr *addr)

Callers 1

json_add_bolt11Function · 0.70

Calls 4

short_channel_id_txnumFunction · 0.85
short_channel_id_outnumFunction · 0.85
json_add_str_fmtFunction · 0.70

Tested by

no test coverage detected