Treat overly long scriptPubKeys as unspendable

This commit is contained in:
Pieter Wuille
2016-04-25 12:32:01 +02:00
committed by lateminer
parent 96a9621534
commit 622fa5bb19

View File

@@ -637,7 +637,7 @@ public:
bool IsUnspendable() const
{
return (size() > 0 && *begin() == OP_RETURN);
return (size() > 0 && *begin() == OP_RETURN) || (size() > MAX_SCRIPT_SIZE);
}
void clear()