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

Function psbt_output_get_amount

bitcoin/psbt.c:657–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655}
656
657struct amount_sat psbt_output_get_amount(const struct wally_psbt *psbt,
658 size_t out)
659{
660 struct amount_asset asset;
661 assert(out < psbt->num_outputs);
662 asset = wally_psbt_output_get_amount(&psbt->outputs[out]);
663 assert(amount_asset_is_main(&asset));
664 return amount_asset_to_sat(&asset);
665}
666
667size_t psbt_output_get_weight(const struct wally_psbt *psbt,
668 size_t outnum)

Callers 4

check_balancesFunction · 0.85
mw_load_outputsFunction · 0.85
check_balancesFunction · 0.85

Calls 3

amount_asset_is_mainFunction · 0.50
amount_asset_to_satFunction · 0.50

Tested by

no test coverage detected