Bugfix: Move IsStandard scriptSig size check out of IsPushOnly, since BIP16 verificat...
[novacoin.git] / src / main.h
index 44624f5..930f518 100644 (file)
@@ -507,7 +507,7 @@ public:
     bool IsStandard() const
     {
         BOOST_FOREACH(const CTxIn& txin, vin)
-            if (!txin.scriptSig.IsPushOnly())
+            if (txin.scriptSig.size() > 200 || !txin.scriptSig.IsPushOnly())
                 return error("nonstandard txin: %s", txin.scriptSig.ToString().c_str());
         BOOST_FOREACH(const CTxOut& txout, vout)
             if (!::IsStandard(txout.scriptPubKey))