| 1978 | AUTODATA(json_command, &listpeers_command); |
| 1979 | |
| 1980 | static void json_add_scb(struct command *cmd, |
| 1981 | const char *fieldname, |
| 1982 | struct json_stream *response, |
| 1983 | struct channel *c) |
| 1984 | { |
| 1985 | u8 *scb = tal_arr(cmd, u8, 0); |
| 1986 | |
| 1987 | towire_scb_chan(&scb, c->scb); |
| 1988 | json_add_hex_talarr(response, fieldname, |
| 1989 | scb); |
| 1990 | } |
| 1991 | |
| 1992 | /* This will return a SCB for all the channels currently loaded |
| 1993 | * in the in-memory channel */ |
no test coverage detected