]> Untitled Git - bdk/commit
Fix P2WPKH_SATISFACTION_SIZE in CS tests
authorDaniela Brozzoni <danielabrozzoni@protonmail.com>
Tue, 16 Aug 2022 16:37:03 +0000 (17:37 +0100)
committerDaniela Brozzoni <danielabrozzoni@protonmail.com>
Tue, 16 Aug 2022 17:27:59 +0000 (18:27 +0100)
commitcd078903a7108f86fdd9557b206f25c9611d07d3
treed2150e0076867a891c11230522ede3719a77a94b
parent9f9ffd0efd94f172bf28ca23477a4b13757ac4b0
Fix P2WPKH_SATISFACTION_SIZE in CS tests

Our costant for the P2WPKH satisfaction size was wrong: in
7ac87b8f99fc0897753ce57d48ea24adf495a633 we added 1 WU for the script
sig len - but actually, that's 4WU! This resulted in
P2WPKH_SATISFACTION_SIZE being equal to 109 instead of 112.
This also adds a comment for better readability.
src/wallet/coin_selection.rs