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

Function sendpsbt_done

plugins/txprepare.c:129–141  ·  view source on GitHub ↗

Called after lightningd has broadcast the transaction. */

Source from the content-addressed store, hash-verified

127
128/* Called after lightningd has broadcast the transaction. */
129static struct command_result *sendpsbt_done(struct command *cmd,
130 const char *buf,
131 const jsmntok_t *result,
132 struct unreleased_tx *utx)
133{
134 struct json_stream *out;
135
136 out = jsonrpc_stream_success(cmd);
137 json_add_hex_talarr(out, "tx", linearize_wtx(tmpctx, utx->tx));
138 json_add_txid(out, "txid", &utx->txid);
139 json_add_psbt(out, "psbt", utx->psbt);
140 return command_finished(cmd, out);
141}
142
143/* Called after lightningd has signed the inputs. */
144static struct command_result *signpsbt_done(struct command *cmd,

Callers

nothing calls this directly

Calls 6

linearize_wtxFunction · 0.85
json_add_psbtFunction · 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