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

Function psbt_output_get_weight

bitcoin/psbt.c:667–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667size_t psbt_output_get_weight(const struct wally_psbt *psbt,
668 size_t outnum)
669{
670 return (8 /* amount*/ + varint_size(psbt->outputs[outnum].script_len) +
671 psbt->outputs[outnum].script_len) * 4;
672}
673
674static void add(u8 **key, const void *mem, size_t len)
675{

Callers 3

calc_weightFunction · 0.85
calc_weightFunction · 0.85
check_balancesFunction · 0.85

Calls 1

varint_sizeFunction · 0.85

Tested by

no test coverage detected