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

Function unreserve_done

plugins/txprepare.c:414–426  ·  view source on GitHub ↗

Called after we've unreserved the inputs. */

Source from the content-addressed store, hash-verified

412
413/* Called after we've unreserved the inputs. */
414static struct command_result *unreserve_done(struct command *cmd,
415 const char *buf,
416 const jsmntok_t *result,
417 struct unreleased_tx *utx)
418{
419 struct json_stream *out;
420
421 out = jsonrpc_stream_success(cmd);
422 json_add_hex_talarr(out, "unsigned_tx", linearize_wtx(tmpctx, utx->tx));
423 json_add_txid(out, "txid", &utx->txid);
424
425 return command_finished(cmd, out);
426}
427
428static struct command_result *param_unreleased_txid(struct command *cmd,
429 const char *name,

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected