From: Wladimir J. van der Laan Date: Tue, 27 Dec 2011 09:02:28 +0000 (+0100) Subject: Fix OP_EVAL recursion depth counting X-Git-Tag: v0.4.0-unstable~129^2~292^2 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=89772f932ac9477ff4745dc62a01cf57dbc0f70d Fix OP_EVAL recursion depth counting --- diff --git a/src/script.cpp b/src/script.cpp index 0a1b3bb..f576e14 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -1033,7 +1033,7 @@ bool EvalScriptInner(vector >& stack, const CScript& scrip return false; if (!EvalScriptInner(stack, subscript, txTo, nIn, nHashType, - pbegincodehash, pendcodehash, nOpCount, nSigOpCount, fStrictOpEval, nRecurseDepth++)) + pbegincodehash, pendcodehash, nOpCount, nSigOpCount, fStrictOpEval, nRecurseDepth+1)) return false; } break;