diff --git a/src/script/script.h b/src/script/script.h index 76bc844af..4d816f891 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -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()