Skip to content

Commit 61b6a01

Browse files
committed
test: wallet util: fix multisig P2SH-P2WSH script creation
1 parent 9c3751a commit 61b6a01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/test_framework/wallet_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def get_multisig(node):
106106
redeem_script=script_code.hex(),
107107
p2wsh_script=witness_script.hex(),
108108
p2wsh_addr=script_to_p2wsh(script_code),
109-
p2sh_p2wsh_script=CScript([OP_HASH160, witness_script, OP_EQUAL]).hex(),
109+
p2sh_p2wsh_script=CScript([OP_HASH160, hash160(witness_script), OP_EQUAL]).hex(),
110110
p2sh_p2wsh_addr=script_to_p2sh_p2wsh(script_code))
111111

112112
def test_address(node, address, **kwargs):

0 commit comments

Comments
 (0)