Skip to content

Commit 11153c8

Browse files
committed
Make ISA_BINOP and ISA_UNOP private
These are really implementation-specific details; not sure we want to export them. [ yapified by gitreformat (github/ghtdak) on Mon Nov 30 21:11:09 2015 ]
1 parent 59e7a11 commit 11153c8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

bitcoin/core/scripteval.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def _CheckMultiSig(opcode, script, stack, txTo, inIdx, err_raiser, nOpCount):
218218
stack.append(b"\x00")
219219

220220
# OP_2MUL and OP_2DIV are *not* included in this list as they are disabled
221-
ISA_UNOP = {OP_1ADD, OP_1SUB, OP_NEGATE, OP_ABS, OP_NOT, OP_0NOTEQUAL,}
221+
_ISA_UNOP = {OP_1ADD, OP_1SUB, OP_NEGATE, OP_ABS, OP_NOT, OP_0NOTEQUAL,}
222222

223223

224224
def _UnaryOp(opcode, stack, err_raiser):
@@ -253,7 +253,7 @@ def _UnaryOp(opcode, stack, err_raiser):
253253
stack.append(bitcoin.core.bignum.bn2vch(bn))
254254

255255
# OP_LSHIFT and OP_RSHIFT are *not* included in this list as they are disabled
256-
ISA_BINOP = {
256+
_ISA_BINOP = {
257257
OP_ADD,
258258
OP_SUB,
259259
OP_BOOLAND,
@@ -419,10 +419,10 @@ def check_args(n):
419419
v = sop - (OP_1 - 1)
420420
stack.append(bitcoin.core.bignum.bn2vch(v))
421421

422-
elif sop in ISA_BINOP:
422+
elif sop in _ISA_BINOP:
423423
_BinOp(sop, stack, err_raiser)
424424

425-
elif sop in ISA_UNOP:
425+
elif sop in _ISA_UNOP:
426426
_UnaryOp(sop, stack, err_raiser)
427427

428428
elif sop == OP_2DROP:

0 commit comments

Comments
 (0)