Skip to content

Commit 5dcf128

Browse files
committed
test: fixup value of P2WPKH_FAKE_PK_SIZE (33)
..which was accidentally swapped with P2WPKH_FAKE_SIG_SIZE.
1 parent 833ed78 commit 5dcf128

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wallet/tests/wallet.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ fn parse_descriptor(s: &str) -> (Descriptor<DescriptorPublicKey>, KeyMap) {
3939
/// The satisfaction size of P2WPKH is 108 WU =
4040
/// 1 (elements in witness) + 1 (size)
4141
/// + 72 (signature + sighash) + 1 (size) + 33 (pubkey).
42-
const P2WPKH_FAKE_PK_SIZE: usize = 72;
43-
const P2WPKH_FAKE_SIG_SIZE: usize = 33;
42+
const P2WPKH_FAKE_PK_SIZE: usize = 33;
43+
const P2WPKH_FAKE_SIG_SIZE: usize = 72;
4444

4545
/// The satisfaction size of P2PKH is 107 =
4646
/// 1 (OP_PUSH) + 72 (signature + sighash) + 1 (OP_PUSH) + 33 (pubkey).

0 commit comments

Comments
 (0)