aboutsummaryrefslogtreecommitdiff
path: root/share/setup.nsi.in
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2024-04-01 14:03:35 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2024-04-05 01:06:14 +0200
commitf81fad5e0f3be1f7aed59f9da00396c75c2a6406 (patch)
tree3405488ba274a00e74b67194b006e4bc248661f0 /share/setup.nsi.in
parent61de64df6790077857faba84796bb874b59c5d15 (diff)
test: introduce and use `calculate_input_weight` helper
Rather than manually estimating an input's weight by adding up all the involved components (fixed-size skeleton, compact-serialized lengths, and the actual scriptSig / witness stack items) we can simply take use of the serialization classes `CTxIn` / `CTxInWitness` instead, to achieve the same with significantly less code. The new helper is used in the functional tests rpc_psbt.py and wallet_send.py, where the previous manual estimation code was duplicated.
Diffstat (limited to 'share/setup.nsi.in')
0 files changed, 0 insertions, 0 deletions