| 1162 | } |
| 1163 | |
| 1164 | static 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 | |
| 1176 | static void json_add_local_update(struct json_stream *response, |
| 1177 | const char *fieldname, |
no test coverage detected