[neo-project/neo] If we only use TCP/IP, why is it necessary to have a checksum in every message? (#322)

@lock9 If I understand correctly; both tcp and udp do error detection, while only tcp does error recovery and sometimes the error detection method can allow corrupted packets through and so the hash of the payload is a way to ensure this is not possible. I think TLS also solves this problem.

It looks like it is being checked here: https://github.com/neo-project/neo/blob/702548f605b44848638a6731ffe5052b8d48e7e5/neo/Network/Message.cs#L48

Добавить комментарий