script: reduce OP_RETURN standard relay bytes to 40

Per mailing list discussion.
This commit is contained in:
Jeff Garzik
2014-02-26 12:58:08 -05:00
parent c72204e568
commit 8175c790eb
3 changed files with 10 additions and 9 deletions

View File

@@ -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)