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

Function psbt_add_output

bitcoin/psbt.c:191–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191struct wally_psbt_output *psbt_add_output(struct wally_psbt *psbt,
192 struct wally_tx_output *output,
193 size_t insert_at)
194{
195 int wally_err;
196
197 tal_wally_start();
198 wally_err = wally_psbt_add_output_at(psbt, insert_at, 0, output);
199 assert(wally_err == WALLY_OK);
200 tal_wally_end(psbt);
201 return &psbt->outputs[insert_at];
202}
203
204struct wally_psbt_output *psbt_append_output(struct wally_psbt *psbt,
205 const u8 *script,

Callers 5

bitcoin_tx_add_outputFunction · 0.70
psbt_append_outputFunction · 0.70
psbt_insert_outputFunction · 0.70
finish_txprepareFunction · 0.50
update_parent_psbtFunction · 0.50

Calls 2

tal_wally_startFunction · 0.85
tal_wally_endFunction · 0.85

Tested by

no test coverage detected