diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-10-31 11:10:10 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-10-31 11:16:09 +0100 |
| commit | 96012e83f1a1e35dd4361516f91d0ac7b87c637b (patch) | |
| tree | 1f14b877a32978c7fba0b2a1ace5abec943bc3a1 /src/script/standard.cpp | |
| parent | Merge pull request #5168 (diff) | |
| parent | Enable customising node policy for datacarrier data size with a -datacarriers... (diff) | |
| download | discoin-96012e83f1a1e35dd4361516f91d0ac7b87c637b.tar.xz discoin-96012e83f1a1e35dd4361516f91d0ac7b87c637b.zip | |
Merge pull request #5077
2aa6329 Enable customising node policy for datacarrier data size with a -datacarriersize option (Luke Dashjr)
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 05938961b..7356e541a 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) |