test: fix segwit terminology (s/witness_program/witness_script/)
This commit is contained in:
1 parent
8ab0c77299
commit
8a2b58db9e
2 files changed
+92
-92
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user