Treat overly long scriptPubKeys as unspendable

This commit is contained in:
Pieter Wuille
2016-10-20 22:59:50 -07:00
committed by Simon
parent 4c6ea562bd
commit 6fc5764eda
+1 -1
View File
@@ -573,7 +573,7 @@ public:
*/
bool IsUnspendable() const
{
return (size() > 0 && *begin() == OP_RETURN);
return (size() > 0 && *begin() == OP_RETURN) || (size() > MAX_SCRIPT_SIZE);
}
std::string ToString() const;