diff options
| author | Wladimir J. van der Laan <[email protected]> | 2011-12-27 10:02:28 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2011-12-27 10:02:28 +0100 |
| commit | 89772f932ac9477ff4745dc62a01cf57dbc0f70d (patch) | |
| tree | aabcadc5d77c8762026084e4d3cc9b95f521df63 /src/script.cpp | |
| parent | Check all prevout.n if one transaction provides multiple inputs (diff) | |
| download | discoin-89772f932ac9477ff4745dc62a01cf57dbc0f70d.tar.xz discoin-89772f932ac9477ff4745dc62a01cf57dbc0f70d.zip | |
Fix OP_EVAL recursion depth counting
Diffstat (limited to 'src/script.cpp')
| -rw-r--r-- | src/script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script.cpp b/src/script.cpp index 0a1b3bb30..f576e14a8 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; |