From c924aa72345b84d12d3a37ffea4a90d3534acbf9 Mon Sep 17 00:00:00 2001 From: 0xDEADFACE Date: Fri, 12 Feb 2016 06:51:08 -0800 Subject: [PATCH] Allow up to 1024 bytes of arbitrary data. --- src/script.cpp | 4 ++-- src/timestamps.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/script.cpp b/src/script.cpp index ebf378e..36b144f 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -1288,8 +1288,8 @@ bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, vector 80) + // small pushdata, <= 1024 bytes + if (vch1.size() > (GetTime() > SMALLDATA_SWITCH_TIME ? 1024 : 80)) break; } else if (opcode1 != opcode2 || vch1 != vch2) diff --git a/src/timestamps.h b/src/timestamps.h index 0d876bd..0da5341 100644 --- a/src/timestamps.h +++ b/src/timestamps.h @@ -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 -- 1.7.1