aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/blocktools.py
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2021-07-11 15:51:48 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2021-07-11 16:01:18 +0200
commit8a2b58db9ee6a14d36b5d8e430b35f18e7c7b0c5 (patch)
treed68bc8a364f07574f8193c58f803245f9fd6d003 /test/functional/test_framework/blocktools.py
parent8ab0c77299a5b184a8d0edf38f26a97bf9bbed6e (diff)
test: fix segwit terminology (s/witness_program/witness_script/)
Diffstat (limited to 'test/functional/test_framework/blocktools.py')
-rw-r--r--test/functional/test_framework/blocktools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/test_framework/blocktools.py b/test/functional/test_framework/blocktools.py
index 833a215993..9c4d9c46f0 100644
--- a/test/functional/test_framework/blocktools.py
+++ b/test/functional/test_framework/blocktools.py
@@ -210,8 +210,8 @@ def witness_script(use_p2wsh, pubkey):
pkscript = key_to_p2wpkh_script(pubkey)
else:
# 1-of-1 multisig
- witness_program = CScript([OP_1, hex_str_to_bytes(pubkey), OP_1, OP_CHECKMULTISIG])
- pkscript = script_to_p2wsh_script(witness_program)
+ witness_script = CScript([OP_1, hex_str_to_bytes(pubkey), OP_1, OP_CHECKMULTISIG])
+ pkscript = script_to_p2wsh_script(witness_script)
return pkscript.hex()
def create_witness_tx(node, use_p2wsh, utxo, pubkey, encode_p2sh, amount):