Skip to content

Commit 5e0cd25

Browse files
committed
fix the unreachable code at feature_taproot
1 parent ea5a50f commit 5e0cd25

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/functional/feature_taproot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,6 @@ def add_spender(spenders, *args, **kwargs):
517517

518518
def random_checksig_style(pubkey):
519519
"""Creates a random CHECKSIG* tapscript that would succeed with only the valid signature on witness stack."""
520-
return bytes(CScript([pubkey, OP_CHECKSIG]))
521520
opcode = random.choice([OP_CHECKSIG, OP_CHECKSIGVERIFY, OP_CHECKSIGADD])
522521
if (opcode == OP_CHECKSIGVERIFY):
523522
ret = CScript([pubkey, opcode, OP_1])

0 commit comments

Comments
 (0)