mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
Treat overly long scriptPubKeys as unspendable
This commit is contained in:
parent
f8e6fb1800
commit
4f87af6fc7
@ -624,7 +624,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
bool IsUnspendable() const
|
bool IsUnspendable() const
|
||||||
{
|
{
|
||||||
return (size() > 0 && *begin() == OP_RETURN);
|
return (size() > 0 && *begin() == OP_RETURN) || (size() > MAX_SCRIPT_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void clear()
|
void clear()
|
||||||
|
Loading…
Reference in New Issue
Block a user