diff options
| author | Gavin Andresen <[email protected]> | 2014-02-26 13:52:56 -0500 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2014-02-26 13:52:56 -0500 |
| commit | ae7e5d7cebd9466d0c095233c9273e72e88fede1 (patch) | |
| tree | f6431a42b65c7318b891407fd1812f58e84078ab /src/script.cpp | |
| parent | Merge pull request #3735 from laanwj/2014_02_remove_PRIx64_completely (diff) | |
| parent | script: reduce OP_RETURN standard relay bytes to 40 (diff) | |
| download | discoin-ae7e5d7cebd9466d0c095233c9273e72e88fede1.tar.xz discoin-ae7e5d7cebd9466d0c095233c9273e72e88fede1.zip | |
Merge pull request #3737 from jgarzik/op-return-size
script: reduce OP_RETURN standard relay bytes to 40
Diffstat (limited to 'src/script.cpp')
| -rw-r--r-- | src/script.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script.cpp b/src/script.cpp index f03a1e3cb..810ba16d2 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -1298,8 +1298,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, <= MAX_OP_RETURN_RELAY bytes + if (vch1.size() > MAX_OP_RETURN_RELAY) break; } else if (opcode1 != opcode2 || vch1 != vch2) |