Replace 520 constant with MAX_SCRIPT_ELEMENT_SIZE

This commit is contained in:
Matt Corallo
2013-01-18 13:55:18 -05:00
parent 28b80e6065
commit 192cc910ec
3 changed files with 5 additions and 3 deletions

View File

@@ -3588,7 +3588,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
// Nodes must NEVER send a data item > 520 bytes (the max size for a script data object,
// and thus, the maximum size any matched object can have) in a filteradd message
if (vData.size() > 520)
if (vData.size() > MAX_SCRIPT_ELEMENT_SIZE)
{
pfrom->Misbehaving(100);
} else {