feat: simplify debug output for protocol version signature computation in NLPacket

This commit is contained in:
MayaTheShy
2025-11-08 18:23:38 -05:00
parent 4aac68a5af
commit 157dd74f17

View File

@@ -482,11 +482,7 @@ std::vector<uint8_t> NLPacket::computeProtocolVersionSignature() {
PacketType type = static_cast<PacketType>(i); PacketType type = static_cast<PacketType>(i);
uint8_t version = versionForPacketType(type); uint8_t version = versionForPacketType(type);
buffer.push_back(version); buffer.push_back(version);
if (i < 20 || i >= numPacketTypes - 10) { // Print first 20 and last 10 std::cout << " Type " << (int)i << ": version " << (int)version << std::endl;
std::cout << " Type " << (int)i << ": version " << (int)version << std::endl;
} else if (i == 20) {
std::cout << " ... (middle entries omitted) ..." << std::endl;
}
} }
// Compute MD5 hash // Compute MD5 hash