diff options
author | Jon Atack <jon@atack.com> | 2024-05-02 11:21:02 -0600 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2024-05-02 13:16:40 -0600 |
commit | ffc674595cb19b2fdc5705b355bdd3e7f724b860 (patch) | |
tree | 45857eed446f0a123b87a30ceddc7541ef928317 /src/net_processing.cpp | |
parent | 3d28725134df09768780249dc1d974b9cdcc83f1 (diff) | |
download | bitcoin-ffc674595cb19b2fdc5705b355bdd3e7f724b860.tar.xz |
Replace remaining "520" magic numbers with MAX_SCRIPT_ELEMENT_SIZE
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r-- | src/net_processing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index bdbf077ab5..0caabc5ea3 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -5205,7 +5205,7 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type, std::vector<unsigned char> vData; vRecv >> vData; - // Nodes must NEVER send a data item > 520 bytes (the max size for a script data object, + // Nodes must NEVER send a data item > MAX_SCRIPT_ELEMENT_SIZE bytes (the max size for a script data object, // and thus, the maximum size any matched object can have) in a filteradd message bool bad = false; if (vData.size() > MAX_SCRIPT_ELEMENT_SIZE) { |