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

Function failed_peer_restore

plugins/chanbackup.c:787–802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

785}
786
787static struct command_result *failed_peer_restore(struct command *cmd,
788 struct node_id *node_id,
789 char *reason)
790{
791 /* BOLT #1:
792 *
793 * The receiver of `peer_storage_retrieval`:
794 * - when it receives `peer_storage_retrieval` with an outdated or irrelevant data:
795 * - MAY send a warning.
796 */
797 /* We don't, we just complain in the logs a little! */
798 plugin_log(cmd->plugin, LOG_DBG, "PeerStorageFailed!: %s: %s",
799 fmt_node_id(tmpctx, node_id),
800 reason);
801 return command_hook_success(cmd);
802}
803
804static struct command_result *datastore_success(struct command *cmd,
805 const char *method,

Callers 1

handle_your_peer_storageFunction · 0.85

Calls 3

fmt_node_idFunction · 0.85
plugin_logFunction · 0.70
command_hook_successFunction · 0.70

Tested by

no test coverage detected