Replace remaining "520" magic numbers with MAX_SCRIPT_ELEMENT_SIZE

This commit is contained in:
Jon Atack
2024-05-02 11:21:02 -06:00
parent 3d28725134
commit ffc674595c
4 changed files with 4 additions and 4 deletions

View File

@@ -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) {