Treat overly long scriptPubKeys as unspendable
This commit is contained in:
@@ -573,7 +573,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
bool IsUnspendable() const
|
bool IsUnspendable() const
|
||||||
{
|
{
|
||||||
return (size() > 0 && *begin() == OP_RETURN);
|
return (size() > 0 && *begin() == OP_RETURN) || (size() > MAX_SCRIPT_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ToString() const;
|
std::string ToString() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user