Browse Source

Treat overly long scriptPubKeys as unspendable

0.13
Pieter Wuille 9 years ago
parent
commit
4f87af6fc7
  1. 2
      src/script/script.h

2
src/script/script.h

@ -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…
Cancel
Save