aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2013-01-18 13:55:18 -0500
committerMatt Corallo <[email protected]>2013-01-18 13:55:18 -0500
commit192cc910ec7cade1d0dce7f3b111e7fc7720e607 (patch)
tree80ec8fa7dccf8c48f17f5ef0edd6ab4d81be742a /src/main.cpp
parentSend transactions after a CMerkleBlock when asked for it in an inv. (diff)
downloaddiscoin-192cc910ec7cade1d0dce7f3b111e7fc7720e607.tar.xz
discoin-192cc910ec7cade1d0dce7f3b111e7fc7720e607.zip
Replace 520 constant with MAX_SCRIPT_ELEMENT_SIZE
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
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 {