aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-12-27 10:02:28 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2011-12-27 10:02:28 +0100
commit89772f932ac9477ff4745dc62a01cf57dbc0f70d (patch)
treeaabcadc5d77c8762026084e4d3cc9b95f521df63
parent61977f956c6bacd6e05e3211bf2a90e5b5672a94 (diff)
Fix OP_EVAL recursion depth counting
-rw-r--r--src/script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script.cpp b/src/script.cpp
index 0a1b3bb309..f576e14a8b 100644
--- a/src/script.cpp
+++ b/src/script.cpp
@@ -1033,7 +1033,7 @@ bool EvalScriptInner(vector<vector<unsigned char> >& 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;