Skip to content

Commit 638e89b

Browse files
committed
Make ISA_BINOP and ISA_UNOP private
These are really implementation-specific details; not sure we want to export them.
1 parent 8d8ad1c commit 638e89b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bitcoin/core/scripteval.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def _CheckMultiSig(opcode, script, stack, txTo, inIdx, err_raiser, nOpCount):
200200

201201

202202
# OP_2MUL and OP_2DIV are *not* included in this list as they are disabled
203-
ISA_UNOP = {
203+
_ISA_UNOP = {
204204
OP_1ADD,
205205
OP_1SUB,
206206
OP_NEGATE,
@@ -241,7 +241,7 @@ def _UnaryOp(opcode, stack, err_raiser):
241241

242242

243243
# OP_LSHIFT and OP_RSHIFT are *not* included in this list as they are disabled
244-
ISA_BINOP = {
244+
_ISA_BINOP = {
245245
OP_ADD,
246246
OP_SUB,
247247
OP_BOOLAND,
@@ -399,10 +399,10 @@ def check_args(n):
399399
v = sop - (OP_1 - 1)
400400
stack.append(bitcoin.core.bignum.bn2vch(v))
401401

402-
elif sop in ISA_BINOP:
402+
elif sop in _ISA_BINOP:
403403
_BinOp(sop, stack, err_raiser)
404404

405-
elif sop in ISA_UNOP:
405+
elif sop in _ISA_UNOP:
406406
_UnaryOp(sop, stack, err_raiser)
407407

408408
elif sop == OP_2DROP:

0 commit comments

Comments
 (0)