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

Function splice_signed

plugins/spender/splice.c:1210–1231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1208}
1209
1210static struct command_result *splice_signed(struct command *cmd,
1211 struct splice_cmd *splice_cmd,
1212 size_t index)
1213{
1214 struct splice_script_result *action = splice_cmd->actions[index];
1215 struct out_req *req;
1216 struct splice_index_pkg *pkg;
1217
1218 pkg = tal(cmd->plugin, struct splice_index_pkg);
1219 pkg->splice_cmd = splice_cmd;
1220 pkg->index = index;
1221
1222 req = jsonrpc_request_start(cmd, "splice_signed",
1223 splice_signed_get_result,
1224 splice_signed_error_pkg,
1225 pkg);
1226
1227 json_add_channel_id(req->js, "channel_id", action->channel_id);
1228 json_add_psbt(req->js, "psbt", splice_cmd->psbt);
1229
1230 return send_outreq(req);
1231}
1232
1233static struct command_result *check_emergency_sat(struct command *cmd,
1234 struct splice_cmd *splice_cmd)

Callers 1

continue_spliceFunction · 0.85

Calls 3

json_add_channel_idFunction · 0.85
json_add_psbtFunction · 0.85
send_outreqFunction · 0.50

Tested by

no test coverage detected