aboutsummaryrefslogtreecommitdiff
path: root/src/script.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@bitpay.com>2014-02-26 12:58:08 -0500
committerJeff Garzik <jgarzik@bitpay.com>2014-02-26 12:58:08 -0500
commit8175c790eb12f0b0ca3197895a6d1d479b340b67 (patch)
tree50a6bf0be4d4070df1f1b40da3e7e68bf32d3d4c /src/script.cpp
parentc72204e5686cbfc363e455d8984f266f04e87b3e (diff)
script: reduce OP_RETURN standard relay bytes to 40
Per mailing list discussion.
Diffstat (limited to 'src/script.cpp')
-rw-r--r--src/script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script.cpp b/src/script.cpp
index f03a1e3cbb..810ba16d28 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)