X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fscript.h;h=f490631662c8dc9f57e3c8a9cc3b923fb403aa56;hb=42c55f2e8a14a2f1c504cfe62e3d1717e8ac5454;hp=157f41f00b81532e13af177e841a7cb1bf202b61;hpb=9cdc338fff33a5e6b8ed3e85f8ce5583601ddf13;p=novacoin.git diff --git a/src/script.h b/src/script.h index 157f41f..f490631 100644 --- a/src/script.h +++ b/src/script.h @@ -447,7 +447,7 @@ public: // Immediate operand if (opcode <= OP_PUSHDATA4) { - uint32_t nSize; + uint32_t nSize = OP_0; if (opcode < OP_PUSHDATA1) { nSize = opcode; @@ -462,7 +462,6 @@ public: { if (end() - pc < 2) return false; - nSize = 0; memcpy(&nSize, &pc[0], 2); pc += 2; } @@ -603,9 +602,9 @@ public: }; bool IsCanonicalPubKey(const std::vector &vchPubKey, unsigned int flags); +bool IsDERSignature(const valtype &vchSig, bool fWithHashType=false, bool fCheckLow=false); bool IsCanonicalSignature(const std::vector &vchSig, unsigned int flags); - bool EvalScript(std::vector >& stack, const CScript& script, const CTransaction& txTo, unsigned int nIn, unsigned int flags, int nHashType); bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, std::vector >& vSolutionsRet); int ScriptSigArgsExpected(txnouttype t, const std::vector >& vSolutions);