| 485 | } |
| 486 | |
| 487 | void 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 | |
| 497 | static void json_add_address_fields(struct json_stream *response, |
| 498 | const struct wireaddr *addr, |
no test coverage detected