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

Function after_staticbackup

plugins/chanbackup.c:320–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320static struct command_result *after_staticbackup(struct command *cmd,
321 const char *buf,
322 const jsmntok_t *params,
323 void *cb_arg UNUSED)
324{
325 struct scb_chan **scb_chan;
326 const jsmntok_t *scbs = json_get_member(buf, params, "scb");
327 json_to_scb_chan(buf, scbs, &scb_chan);
328 plugin_log(cmd->plugin, LOG_INFORM, "Updating the SCB");
329
330 update_scb(cmd->plugin, scb_chan);
331 return notification_handled(cmd);
332}
333
334static struct command_result *json_state_changed(struct command *cmd,
335 const char *buf,

Callers

nothing calls this directly

Calls 5

json_to_scb_chanFunction · 0.85
update_scbFunction · 0.85
notification_handledFunction · 0.85
plugin_logFunction · 0.70
json_get_memberFunction · 0.50

Tested by

no test coverage detected