Add constant for maximum stack size
This commit is contained in:
parent
a3e756b7d6
commit
cb184b3a54
2 changed files with 4 additions and 1 deletions
src/script
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue