From: 0xDEADFACE Date: Fri, 12 Feb 2016 14:51:08 +0000 (-0800) Subject: Allow up to 1024 bytes of arbitrary data. X-Git-Tag: nvc-v0.5.6~88 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=c924aa72345b84d12d3a37ffea4a90d3534acbf9 Allow up to 1024 bytes of arbitrary data. --- 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