diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2014-10-10 23:55:14 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2014-10-27 09:41:57 +0000 |
commit | 2aa632921efd861a7c9968e8faf6c73cb3d62c4a (patch) | |
tree | 16dcffd8471a67df2fcd537f885af2c3797ce5e1 /src/script/standard.cpp | |
parent | 2ffdf21ce39fc3133fc028fb51d49cd7479eaa43 (diff) |
Enable customising node policy for datacarrier data size with a -datacarriersize option
Diffstat (limited to 'src/script/standard.cpp')
-rw-r--r-- | src/script/standard.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/script/standard.cpp b/src/script/standard.cpp index 05938961bc..7356e541a6 100644 --- a/src/script/standard.cpp +++ b/src/script/standard.cpp @@ -15,6 +15,8 @@ using namespace std; typedef vector<unsigned char> valtype; +unsigned nMaxDatacarrierBytes = MAX_OP_RETURN_RELAY; + CScriptID::CScriptID(const CScript& in) : uint160(in.size() ? Hash160(in.begin(), in.end()) : 0) {} const char* GetTxnOutputType(txnouttype t) @@ -139,8 +141,8 @@ bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, vector<vector<unsi } else if (opcode2 == OP_SMALLDATA) { - // small pushdata, <= MAX_OP_RETURN_RELAY bytes - if (vch1.size() > MAX_OP_RETURN_RELAY) + // small pushdata, <= nMaxDatacarrierBytes + if (vch1.size() > nMaxDatacarrierBytes) break; } else if (opcode1 != opcode2 || vch1 != vch2) |