diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2021-06-27 20:14:01 +0200 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2021-06-28 20:14:01 +0200 |
commit | 61b6a017a9f99ef072b2d1980dd547eb20093352 (patch) | |
tree | e4d63641915b91356371f192a90af0925964e653 /test/functional/test_framework | |
parent | 9c3751a0c940228c46461c4191f1a57153cb9037 (diff) |
test: wallet util: fix multisig P2SH-P2WSH script creation
Diffstat (limited to 'test/functional/test_framework')
-rwxr-xr-x | test/functional/test_framework/wallet_util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/test_framework/wallet_util.py b/test/functional/test_framework/wallet_util.py index b9c0fb6691..d7ab720260 100755 --- a/test/functional/test_framework/wallet_util.py +++ b/test/functional/test_framework/wallet_util.py @@ -106,7 +106,7 @@ def get_multisig(node): redeem_script=script_code.hex(), p2wsh_script=witness_script.hex(), p2wsh_addr=script_to_p2wsh(script_code), - p2sh_p2wsh_script=CScript([OP_HASH160, witness_script, OP_EQUAL]).hex(), + p2sh_p2wsh_script=CScript([OP_HASH160, hash160(witness_script), OP_EQUAL]).hex(), p2sh_p2wsh_addr=script_to_p2sh_p2wsh(script_code)) def test_address(node, address, **kwargs): |