mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-27 14:30:24 +01:00
fix the unreachable code at feature_taproot
This commit is contained in:
@@ -517,7 +517,6 @@ def add_spender(spenders, *args, **kwargs):
|
|||||||
|
|
||||||
def random_checksig_style(pubkey):
|
def random_checksig_style(pubkey):
|
||||||
"""Creates a random CHECKSIG* tapscript that would succeed with only the valid signature on witness stack."""
|
"""Creates a random CHECKSIG* tapscript that would succeed with only the valid signature on witness stack."""
|
||||||
return bytes(CScript([pubkey, OP_CHECKSIG]))
|
|
||||||
opcode = random.choice([OP_CHECKSIG, OP_CHECKSIGVERIFY, OP_CHECKSIGADD])
|
opcode = random.choice([OP_CHECKSIG, OP_CHECKSIGVERIFY, OP_CHECKSIGADD])
|
||||||
if (opcode == OP_CHECKSIGVERIFY):
|
if (opcode == OP_CHECKSIGVERIFY):
|
||||||
ret = CScript([pubkey, opcode, OP_1])
|
ret = CScript([pubkey, opcode, OP_1])
|
||||||
|
|||||||
Reference in New Issue
Block a user