aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Garcia <brunoely.gc@gmail.com>2021-02-04 10:49:45 -0200
committerBruno Garcia <brunoely.gc@gmail.com>2021-02-04 10:57:37 -0200
commit5e0cd25e29541e6c19559fb5c2555e008ed896fa (patch)
treed68ab9f3df6ba5ef05b90a5212f8240fd6262cf8
parentea5a50f92a6ff81b1d2dd67cdc3663e0e66733ac (diff)
fix the unreachable code at feature_taproot
-rwxr-xr-xtest/functional/feature_taproot.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/functional/feature_taproot.py b/test/functional/feature_taproot.py
index 6ee2b72c11..5027a9828f 100755
--- a/test/functional/feature_taproot.py
+++ b/test/functional/feature_taproot.py
@@ -517,7 +517,6 @@ def add_spender(spenders, *args, **kwargs):
def random_checksig_style(pubkey):
"""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])
if (opcode == OP_CHECKSIGVERIFY):
ret = CScript([pubkey, opcode, OP_1])