test: fix segwit terminology (s/witness_program/witness_script/)

This commit is contained in:
Sebastian Falbesoner
2021-07-11 15:51:48 +02:00
parent 8ab0c77299
commit 8a2b58db9e
2 changed files with 92 additions and 92 deletions

View File

@ -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):