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

Function after_send_scb_single_fail

plugins/chanbackup.c:554–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552}
553
554static struct command_result *after_send_scb_single_fail(struct command *cmd,
555 const char *method,
556 const char *buf,
557 const jsmntok_t *params,
558 struct info *info)
559{
560 plugin_log(cmd->plugin, LOG_DBG, "Peer storage send failed!");
561 remove_peer(cmd->plugin, &info->node_id);
562 if (--(*info->idx) != 0)
563 return command_still_pending(cmd);
564
565 return notification_or_hook_done(cmd);
566}
567
568static bool already_have_node_id(const struct node_id *ids,
569 const struct node_id *id)

Callers

nothing calls this directly

Calls 4

remove_peerFunction · 0.85
plugin_logFunction · 0.70
command_still_pendingFunction · 0.70

Tested by

no test coverage detected