Browse Source

Treat overly long scriptPubKeys as unspendable

pull/4/head
Pieter Wuille 8 years ago
committed by Simon
parent
commit
6fc5764eda
  1. 2
      src/script/script.h

2
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;

Loading…
Cancel
Save