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

Function delete_channel_from_datastore

plugins/funder.c:1152–1171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1150}
1151
1152static struct command_result *
1153delete_channel_from_datastore(struct command *cmd,
1154 struct channel_id *cid)
1155{
1156 const struct out_req *req;
1157
1158 /* Fetch out previous utxos from the datastore.
1159 * If we were clever, we'd have some way of tracking
1160 * channels that we actually might have data for
1161 * but this is much easier */
1162 req = jsonrpc_request_start(cmd,
1163 "deldatastore",
1164 &datastore_del_success,
1165 &datastore_del_fail,
1166 NULL);
1167 json_add_string(req->js, "key",
1168 tal_fmt(cmd, "funder/%s",
1169 fmt_channel_id(cmd, cid)));
1170 return send_outreq(req);
1171}
1172
1173static struct command_result *json_channel_state_changed(struct command *cmd,
1174 const char *buf,

Callers 1

Calls 3

send_outreqFunction · 0.70
json_add_stringFunction · 0.50
fmt_channel_idFunction · 0.50

Tested by

no test coverage detected