Skip to content

Commit d24c546

Browse files
committed
fix feature_taproot.py
1 parent e033eb4 commit d24c546

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/feature_taproot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ def predict_sigops_ratio(n, dummy_size):
11411141
hashtype = lambda _: random.choice(VALID_SIGHASHES_TAPROOT)
11421142
for opval in range(76, 0x100):
11431143
opcode = CScriptOp(opval)
1144-
if not is_op_success(opcode, LEAF_VERSION_TAPSCRIPT):
1144+
if not is_op_success(opcode):
11451145
continue
11461146
scripts = [
11471147
("bare_success", CScript([opcode])),
@@ -1172,7 +1172,7 @@ def predict_sigops_ratio(n, dummy_size):
11721172
# Non-OP_SUCCESSx (verify that those aren't accidentally treated as OP_SUCCESSx)
11731173
for opval in range(0, 0x100):
11741174
opcode = CScriptOp(opval)
1175-
if is_op_success(opcode, LEAF_VERSION_TAPSCRIPT):
1175+
if is_op_success(opcode):
11761176
continue
11771177
scripts = [
11781178
("normal", CScript([OP_RETURN, opcode] + [OP_NOP] * 75)),

0 commit comments

Comments
 (0)