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

Function psbt_input_set_witscript

bitcoin/psbt.c:337–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337void psbt_input_set_witscript(struct wally_psbt *psbt, size_t in, const u8 *wscript)
338{
339 int wally_err;
340
341 tal_wally_start();
342 wally_err = wally_psbt_input_set_witness_script(&psbt->inputs[in],
343 wscript,
344 tal_bytelen(wscript));
345 assert(wally_err == WALLY_OK);
346 tal_wally_end(psbt);
347}
348
349void psbt_elements_input_set_asset(struct wally_psbt *psbt, size_t in,
350 struct amount_asset *asset)

Callers 5

htlc_timeout_txFunction · 0.85
sign_our_inputsFunction · 0.85
psbt_append_inputFunction · 0.85
migrate_last_tx_to_psbtFunction · 0.85

Calls 3

tal_wally_startFunction · 0.85
tal_bytelenFunction · 0.85
tal_wally_endFunction · 0.85

Tested by 1

htlc_timeout_txFunction · 0.68