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

Function psbt_insert_output

bitcoin/psbt.c:281–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281struct wally_psbt_output *psbt_insert_output(struct wally_psbt *psbt,
282 const u8 *script,
283 struct amount_sat amount,
284 size_t insert_at)
285{
286 struct wally_psbt_output *out;
287 struct wally_tx_output *tx_out = wally_tx_output(NULL, script, amount);
288
289 out = psbt_add_output(psbt, tx_out, insert_at);
290 wally_tx_output_free(tx_out);
291 return out;
292}
293
294void psbt_rm_output(struct wally_psbt *psbt,
295 size_t remove_at)

Callers 3

psbt_append_outputFunction · 0.85
mw_load_outputsFunction · 0.85

Calls 2

psbt_add_outputFunction · 0.85
wally_tx_outputClass · 0.70

Tested by

no test coverage detected