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

Function psbt_add_output

bitcoin/psbt.c:261–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261struct wally_psbt_output *psbt_add_output(struct wally_psbt *psbt,
262 struct wally_tx_output *output,
263 size_t insert_at)
264{
265 int wally_err;
266
267 tal_wally_start();
268 wally_err = wally_psbt_add_tx_output_at(psbt, insert_at, 0, output);
269 assert(wally_err == WALLY_OK);
270 tal_wally_end(psbt);
271 return &psbt->outputs[insert_at];
272}
273
274struct wally_psbt_output *psbt_append_output(struct wally_psbt *psbt,
275 const u8 *script,

Callers 3

bitcoin_tx_add_outputFunction · 0.85
psbt_insert_outputFunction · 0.85
finish_txprepareFunction · 0.85

Calls 2

tal_wally_startFunction · 0.85
tal_wally_endFunction · 0.85

Tested by

no test coverage detected