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

Function json_add_scb

lightningd/peer_control.c:1980–1990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1978AUTODATA(json_command, &listpeers_command);
1979
1980static 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 */

Callers 1

json_staticbackupFunction · 0.85

Calls 2

towire_scb_chanFunction · 0.50
json_add_hex_talarrFunction · 0.50

Tested by

no test coverage detected