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

Function unreserve_done

plugins/txprepare.c:428–441  ·  view source on GitHub ↗

Called after we've unreserved the inputs. */

Source from the content-addressed store, hash-verified

426
427/* Called after we've unreserved the inputs. */
428static struct command_result *unreserve_done(struct command *cmd,
429 const char *method,
430 const char *buf,
431 const jsmntok_t *result,
432 struct unreleased_tx *utx)
433{
434 struct json_stream *out;
435
436 out = jsonrpc_stream_success(cmd);
437 json_add_hex_talarr(out, "unsigned_tx", linearize_wtx(tmpctx, utx->tx));
438 json_add_txid(out, "txid", &utx->txid);
439
440 return command_finished(cmd, out);
441}
442
443static struct command_result *param_unreleased_txid(struct command *cmd,
444 const char *name,

Callers

nothing calls this directly

Calls 5

json_add_hex_talarrFunction · 0.85
linearize_wtxFunction · 0.85
json_add_txidFunction · 0.85
jsonrpc_stream_successFunction · 0.70
command_finishedFunction · 0.70

Tested by

no test coverage detected