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

Function abort_get_result

plugins/spender/splice.c:150–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150static struct command_result *abort_get_result(struct command *cmd,
151 const char *methodname,
152 const char *buf,
153 const jsmntok_t *result,
154 struct abort_pkg *abort_pkg)
155{
156 struct out_req *req;
157 struct splice_cmd *splice_cmd = abort_pkg->splice_cmd;
158
159 plugin_log(cmd->plugin, LOG_DBG,
160 "unreserveinputs(psbt:%p)", splice_cmd->psbt);
161
162 if (!splice_cmd->psbt)
163 return make_error(cmd, abort_pkg, "abort_get_result");
164
165 req = jsonrpc_request_start(cmd, "unreserveinputs",
166 unreserve_get_result, forward_error,
167 abort_pkg);
168
169 json_add_psbt(req->js, "psbt", splice_cmd->psbt);
170
171 return send_outreq(req);
172}
173
174static struct command_result *do_fail(struct command *cmd,
175 struct splice_cmd *splice_cmd,

Callers 1

do_failFunction · 0.85

Calls 4

make_errorFunction · 0.85
json_add_psbtFunction · 0.85
plugin_logFunction · 0.50
send_outreqFunction · 0.50

Tested by

no test coverage detected