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

Function delete_channel_from_datastore

plugins/funder.c:1115–1134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1113}
1114
1115static struct command_result *
1116delete_channel_from_datastore(struct command *cmd,
1117 struct channel_id *cid)
1118{
1119 const struct out_req *req;
1120
1121 /* Fetch out previous utxos from the datastore.
1122 * If we were clever, we'd have some way of tracking
1123 * channels that we actually might have data for
1124 * but this is much easier */
1125 req = jsonrpc_request_start(cmd,
1126 "deldatastore",
1127 &datastore_del_success,
1128 &datastore_del_fail,
1129 NULL);
1130 json_add_string(req->js, "key",
1131 tal_fmt(cmd, "funder/%s",
1132 fmt_channel_id(cmd, cid)));
1133 return send_outreq(req);
1134}
1135
1136static struct command_result *json_channel_state_changed(struct command *cmd,
1137 const char *buf,

Callers 2

json_channel_open_failedFunction · 0.85

Calls 3

send_outreqFunction · 0.70
json_add_stringFunction · 0.50
fmt_channel_idFunction · 0.50

Tested by

no test coverage detected