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

Function json_add_short_channel_id_dir

common/json_stream.c:487–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487void json_add_short_channel_id_dir(struct json_stream *response,
488 const char *fieldname,
489 struct short_channel_id_dir scidd)
490{
491 json_add_str_fmt(response, fieldname, "%dx%dx%d/%d",
492 short_channel_id_blocknum(scidd.scid),
493 short_channel_id_txnum(scidd.scid),
494 short_channel_id_outnum(scidd.scid), scidd.dir);
495}
496
497static void json_add_address_fields(struct json_stream *response,
498 const struct wireaddr *addr,

Callers 12

channel_hint_to_jsonFunction · 0.85
json_add_local_updateFunction · 0.85
json_add_constraintFunction · 0.85
json_add_biasFunction · 0.85
json_add_reservationsFunction · 0.85
json_add_getroutesFunction · 0.85
unreserve_pathFunction · 0.85
getroutes_doneFunction · 0.85
add_fake_channelFunction · 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