From 192cc910ec7cade1d0dce7f3b111e7fc7720e607 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 18 Jan 2013 13:55:18 -0500 Subject: Replace 520 constant with MAX_SCRIPT_ELEMENT_SIZE --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 9fa6ebf24..4febf332d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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 { -- cgit v1.2.3