aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.h2
-rw-r--r--src/script.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/main.h b/src/main.h
index 44624f5cf7..930f5187d9 100644
--- a/src/main.h
+++ b/src/main.h
@@ -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))
diff --git a/src/script.h b/src/script.h
index 502bce1e54..8dddb893f4 100644
--- a/src/script.h
+++ b/src/script.h
@@ -623,8 +623,6 @@ public:
bool IsPushOnly() const
{
- if (size() > 200)
- return false;
const_iterator pc = begin();
while (pc < end())
{