diff --git a/src/script/script.h b/src/script/script.h index 8307aed2e..e0e89185f 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -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;