Adding a pong message to the protocol



Summary:

The writer is considering writing a patch for an issue related to nodes under heavy load exhibiting extremely high latency, which makes downloading the blockchain from such nodes useless. The issue could be fixed by making nodes not accept connections or advertise until they are sure they have the best chain. However, a more general fix is suggested: adding a "pong" response to the existing "ping" message. This would allow useful stats about the node to be collected and, more importantly, let nodes be ordered by responsiveness. Currently, this can only be done indirectly through messages that yield a known response. The addition of the pong response would be easy and backwards compatible. However, care must be taken to avoid sloshing load around too much when making nodes prefer responsive servers. Overall, the writer is seeking input on the proposed solution.


Updated on: 2023-06-04T18:55:08.536730+00:00