Skip to content

Commit 007c607

Browse files
committed
Rename nMaxNumSize to MAX_NUM_SIZE
This is a constant; not meant to be changed. [ yapified by gitreformat (github/ghtdak) on Mon Nov 30 21:11:10 2015 ]
1 parent 7ee93f3 commit 007c607

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
@@ -34,7 +34,7 @@
3434
# we're not exporting the whole contents of the script module.
3535
from bitcoin.core.script import *
3636

37-
nMaxNumSize = 4
37+
MAX_NUM_SIZE = 4
3838
MAX_STACK_ITEMS = 1000
3939

4040
SCRIPT_VERIFY_P2SH = object()
@@ -114,7 +114,7 @@ def __init__(self, opcode, **kwargs):
114114

115115
def _CastToBigNum(s, err_raiser):
116116
v = bitcoin.core.bignum.vch2bn(s)
117-
if len(s) > nMaxNumSize:
117+
if len(s) > MAX_NUM_SIZE:
118118
raise err_raiser(EvalScriptError, 'CastToBigNum() : overflow')
119119
return v
120120

0 commit comments

Comments
 (0)