diff options
| author | Matt Corallo <[email protected]> | 2013-01-18 13:55:18 -0500 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2013-01-18 13:55:18 -0500 |
| commit | 192cc910ec7cade1d0dce7f3b111e7fc7720e607 (patch) | |
| tree | 80ec8fa7dccf8c48f17f5ef0edd6ab4d81be742a /src/main.cpp | |
| parent | Send transactions after a CMerkleBlock when asked for it in an inv. (diff) | |
| download | discoin-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.cpp | 2 |
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 { |