Cluster Violations
Posted: Mon Sep 29, 2025 12:27 am
Violations are different "metrics" HotPocket uses to identify bad network peers. Violation means that peer has displayed some undesired network activity like sending malformed messages, abruptly dropping connection etc... Multiple repeated violations within a short time period will cause the peer to be banned temporarily. Banned means the peer will not be able to establish a connection to the node until the ban is lifted.
Currently this is internally set to 5 violations within 10 minutes will cause the peer to be banned for 10 minutes.
Violation 1 and 2 is usually when you are missing peer messages frequently.
Violation 4 is when the peer is inactive for long time.
An other violation example:
Sometimes nodes make 2 connections to each other at the same time. In such cases they agree to keep and share one of the connections while dropping the other. So that connection "drop" is also classified as a violation.
Currently this is internally set to 5 violations within 10 minutes will cause the peer to be banned for 10 minutes.
Violation 1 and 2 is usually when you are missing peer messages frequently.
Violation 4 is when the peer is inactive for long time.
An other violation example:
Sometimes nodes make 2 connections to each other at the same time. In such cases they agree to keep and share one of the connections while dropping the other. So that connection "drop" is also classified as a violation.