diff options
author | Gregory Sanders <gsanders87@gmail.com> | 2017-05-02 10:55:06 -0400 |
---|---|---|
committer | Gregory Sanders <gsanders87@gmail.com> | 2017-05-02 13:37:41 -0400 |
commit | cb184b3a544df7bcc7695ad3b54ed9d196c1650e (patch) | |
tree | 5c53eceecb99f350184b4fc25d85da41a3d3c2cd /src/script/interpreter.cpp | |
parent | a3e756b7d61010654abe5cd4694b3f356a8b4606 (diff) |
Add constant for maximum stack size
Diffstat (limited to 'src/script/interpreter.cpp')
-rw-r--r-- | src/script/interpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp index f4e5313a78..e9784fef94 100644 --- a/src/script/interpreter.cpp +++ b/src/script/interpreter.cpp @@ -1028,7 +1028,7 @@ bool EvalScript(std::vector<std::vector<unsigned char> >& stack, const CScript& } // Size limits - if (stack.size() + altstack.size() > 1000) + if (stack.size() + altstack.size() > MAX_STACK_SIZE) return set_error(serror, SCRIPT_ERR_STACK_SIZE); } } |