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

Function psbt_insert_output

bitcoin/psbt.c:215–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213 return out;
214}
215struct wally_psbt_output *psbt_insert_output(struct wally_psbt *psbt,
216 const u8 *script,
217 struct amount_sat amount,
218 size_t insert_at)
219{
220 struct wally_psbt_output *out;
221 struct wally_tx_output *tx_out = wally_tx_output(NULL, script, amount);
222
223 out = psbt_add_output(psbt, tx_out, insert_at);
224 wally_tx_output_free(tx_out);
225 return out;
226}
227
228void psbt_rm_output(struct wally_psbt *psbt,
229 size_t remove_at)

Callers 2

mw_load_outputsFunction · 0.85

Calls 2

wally_tx_outputClass · 0.70
psbt_add_outputFunction · 0.70

Tested by

no test coverage detected