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

Function notification_or_hook_done

plugins/chanbackup.c:533–539  ·  view source on GitHub ↗

We refresh scb from both channel_state_changed notification and on_commitment_revocation hook. Both have to be terminated differently. */

Source from the content-addressed store, hash-verified

531 on_commitment_revocation hook. Both have to be terminated
532 differently. */
533static struct command_result *notification_or_hook_done(struct command *cmd)
534{
535 if (cmd->type == COMMAND_TYPE_NOTIFICATION)
536 return notification_handled(cmd);
537 assert(cmd->type == COMMAND_TYPE_HOOK);
538 return command_hook_success(cmd);
539}
540
541static struct command_result *after_send_scb_single(struct command *cmd,
542 const char *method,

Callers 4

after_send_scb_singleFunction · 0.85
send_to_peersFunction · 0.85
json_state_changedFunction · 0.85

Calls 2

notification_handledFunction · 0.70
command_hook_successFunction · 0.70

Tested by

no test coverage detected