Browse Source

Fix OP_EVAL recursion depth counting

0.8
Wladimir J. van der Laan 13 years ago
parent
commit
89772f932a
  1. 2
      src/script.cpp

2
src/script.cpp

@ -1033,7 +1033,7 @@ bool EvalScriptInner(vector<vector<unsigned char> >& stack, const CScript& scrip
return false; return false;
if (!EvalScriptInner(stack, subscript, txTo, nIn, nHashType, if (!EvalScriptInner(stack, subscript, txTo, nIn, nHashType,
pbegincodehash, pendcodehash, nOpCount, nSigOpCount, fStrictOpEval, nRecurseDepth++)) pbegincodehash, pendcodehash, nOpCount, nSigOpCount, fStrictOpEval, nRecurseDepth+1))
return false; return false;
} }
break; break;

Loading…
Cancel
Save