Skip to content

Commit a260407

Browse files
committed
Rename nMaxNumSize to MAX_NUM_SIZE
This is a constant; not meant to be changed.
1 parent 6619249 commit a260407

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bitcoin/core/scripteval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# we're not exporting the whole contents of the script module.
3636
from bitcoin.core.script import *
3737

38-
nMaxNumSize = 4
38+
MAX_NUM_SIZE = 4
3939
MAX_STACK_ITEMS = 1000
4040

4141
SCRIPT_VERIFY_P2SH = object()
@@ -97,7 +97,7 @@ def __init__(self, opcode, **kwargs):
9797

9898
def _CastToBigNum(s, err_raiser):
9999
v = bitcoin.core.bignum.vch2bn(s)
100-
if len(s) > nMaxNumSize:
100+
if len(s) > MAX_NUM_SIZE:
101101
raise err_raiser(EvalScriptError, 'CastToBigNum() : overflow')
102102
return v
103103

0 commit comments

Comments
 (0)