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

Function json_add_local_channel

plugins/askrene/layer.c:1164–1174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1162}
1163
1164static void json_add_local_channel(struct json_stream *response,
1165 const char *fieldname,
1166 const struct local_channel *lc)
1167{
1168 json_object_start(response, fieldname);
1169 json_add_node_id(response, "source", &lc->n1);
1170 json_add_node_id(response, "destination", &lc->n2);
1171 json_add_short_channel_id(response, "short_channel_id", lc->scid);
1172 json_add_amount_msat(response, "capacity_msat", lc->capacity);
1173 json_object_end(response);
1174}
1175
1176static void json_add_local_update(struct json_stream *response,
1177 const char *fieldname,

Callers 1

json_add_layerFunction · 0.85

Calls 5

json_object_startFunction · 0.85
json_add_node_idFunction · 0.85
json_add_amount_msatFunction · 0.85
json_object_endFunction · 0.85

Tested by

no test coverage detected