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

Function json_askrene_remove_channel_update

plugins/askrene/askrene.c:1122–1143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1120}
1121
1122static struct command_result *
1123json_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
1145enum inform {
1146 INFORM_CONSTRAINED,

Callers

nothing calls this directly

Calls 8

paramFunction · 0.50
command_param_failedFunction · 0.50
plugin_logFunction · 0.50
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50
jsonrpc_stream_successFunction · 0.50
command_finishedFunction · 0.50

Tested by

no test coverage detected