341 | @@ -342,6 +342,35 @@ class ConditionStack {
342 | };
343 | }
344 |
345 | +/** Helper for OP_CHECKSIG and OP_CHECKSIGVERIFY
346 | + *
347 | + * A return value of false means the script fails entirely. When true is returned, the
348 | + * fSuccess variable indicates whether the signature check itself succeeded.
349 | + */
350 | +static bool EvalChecksig(const valtype& vchSig, const valtype& vchPubKey, CScript::const_iterator pend, CScript::const_iterator pbegincodehash, unsigned int flags, const BaseSignatureChecker& checker, SigVersion sigversion, ScriptError* serror, bool& fSuccess)
nit: Could swap the parameters pend and pbegincodehash? It's IMHO quite unusual to pass iterator pairs in the order of (end, start) instead of (start, end).
This seems reasonable. @sipa - any reason these are reversed?