| 785 | } |
| 786 | |
| 787 | static 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 | |
| 804 | static struct command_result *datastore_success(struct command *cmd, |
| 805 | const char *method, |
no test coverage detected