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

Function on_commitment_revocation

plugins/chanbackup.c:1047–1062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1045}
1046
1047static struct command_result *on_commitment_revocation(struct command *cmd,
1048 const char *buf,
1049 const jsmntok_t *params)
1050{
1051 struct out_req *req;
1052
1053 plugin_log(cmd->plugin, LOG_DBG, "Updated `emergency.recover` state after receiving new commitment secret.");
1054
1055 req = jsonrpc_request_start(cmd,
1056 "staticbackup",
1057 after_staticbackup,
1058 log_broken_and_complete,
1059 NULL);
1060
1061 return send_outreq(req);
1062}
1063
1064static void setup_backup_map(struct command *init_cmd,
1065 struct chanbackup *cb)

Callers

nothing calls this directly

Calls 2

plugin_logFunction · 0.70
send_outreqFunction · 0.70

Tested by

no test coverage detected