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

Function psbt_elements_input_set_asset

bitcoin/psbt.c:349–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349void psbt_elements_input_set_asset(struct wally_psbt *psbt, size_t in,
350 struct amount_asset *asset)
351{
352 tal_wally_start();
353
354 if (asset->value > 0)
355 if (wally_psbt_input_set_value(&psbt->inputs[in],
356 asset->value) != WALLY_OK)
357 abort();
358
359 /* PSET expects an asset tag without the prefix */
360 if (wally_psbt_input_set_asset(&psbt->inputs[in],
361 asset->asset + 1,
362 ELEMENTS_ASSET_LEN - 1) != WALLY_OK)
363 abort();
364 tal_wally_end(psbt);
365}
366
367void psbt_elements_normalize_fees(struct wally_psbt *psbt)
368{

Callers 4

bitcoin_tx_add_inputFunction · 0.70
migrate_last_tx_to_psbtFunction · 0.50
psbt_using_utxosFunction · 0.50
run_tx_interactiveFunction · 0.50

Calls 3

tal_wally_startFunction · 0.85
abortFunction · 0.85
tal_wally_endFunction · 0.85

Tested by

no test coverage detected