Allow up to 1024 bytes of arbitrary data.
author0xDEADFACE <masmfan@gmail.com>
Fri, 12 Feb 2016 14:51:08 +0000 (06:51 -0800)
committer0xDEADFACE <masmfan@gmail.com>
Fri, 12 Feb 2016 14:51:08 +0000 (06:51 -0800)
src/script.cpp
src/timestamps.h

index ebf378e..36b144f 100644 (file)
@@ -1288,8 +1288,8 @@ bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, vector<vector<unsi
             }
             else if (opcode2 == OP_SMALLDATA)
             {
-                // small pushdata, <= 80 bytes
-                if (vch1.size() > 80)
+                // small pushdata, <= 1024 bytes
+                if (vch1.size() > (GetTime() > SMALLDATA_SWITCH_TIME ? 1024 : 80))
                     break;
             }
             else if (opcode1 != opcode2 || vch1 != vch2)
index 0d876bd..0da5341 100644 (file)
@@ -3,5 +3,6 @@
 
 static const unsigned int TARGETS_SWITCH_TIME = 1374278400; // Saturday, 20-Jul-2013 00:00:00 UTC
 static const unsigned int COINBASE_SIGOPS_SWITCH_TIME = 1447977600; // Friday, 20-Nov-15 00:00:00 UTC
+static const unsigned int SMALLDATA_SWITCH_TIME = 1458432000; // Sunday, 20-Mar-16 00:00:00 UTC
 
 #endif