| 1120 | } |
| 1121 | |
| 1122 | static struct command_result * |
| 1123 | json_askrene_remove_channel_update(struct command *cmd, const char *buffer, |
| 1124 | const jsmntok_t *params) |
| 1125 | { |
| 1126 | struct layer *layer; |
| 1127 | struct short_channel_id_dir *scidd; |
| 1128 | struct json_stream *response; |
| 1129 | |
| 1130 | if (!param(cmd, buffer, params, |
| 1131 | p_req("layer", param_known_layer, &layer), |
| 1132 | p_req("short_channel_id_dir", param_short_channel_id_dir, |
| 1133 | &scidd), |
| 1134 | NULL)) |
| 1135 | return command_param_failed(); |
| 1136 | plugin_log(cmd->plugin, LOG_TRACE, "%s called: %.*s", __func__, |
| 1137 | json_tok_full_len(params), json_tok_full(buffer, params)); |
| 1138 | |
| 1139 | layer_remove_channel_update(layer, scidd); |
| 1140 | |
| 1141 | response = jsonrpc_stream_success(cmd); |
| 1142 | return command_finished(cmd, response); |
| 1143 | } |
| 1144 | |
| 1145 | enum inform { |
| 1146 | INFORM_CONSTRAINED, |
nothing calls this directly
no test coverage detected