aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2013-01-18 13:55:18 -0500
committerMatt Corallo <git@bluematt.me>2013-01-18 13:55:18 -0500
commit192cc910ec7cade1d0dce7f3b111e7fc7720e607 (patch)
tree80ec8fa7dccf8c48f17f5ef0edd6ab4d81be742a /src/main.cpp
parent28b80e6065fb3ada78a6ea49faf2912beb59ca27 (diff)
downloadbitcoin-192cc910ec7cade1d0dce7f3b111e7fc7720e607.tar.xz
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 9fa6ebf242..4febf332db 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 {