Sometime a peer reputation would drop because of networking issue or bug in the design, preventing the node to interact properly with the other peer.

How long does it take for the peer reputation to become good again after such an event ?

1 Answer 1


Quoting from the peerset code:

// We use `k = 0.98`, so we divide by `50`. With that value, it takes 34.3 seconds
// to reduce the reputation by half.

While the banned threshold is defined as:

pub const BANNED_THRESHOLD: i32 = 82 * (i32::MIN / 100);

While a fatal reputation is defined as:

pub const fn new_fatal(reason: &'static str) -> ReputationChange {
    Self { value: i32::MIN, reason }
Banned threshold: -1760936552 -- i32::Min: -2147483648 -> i32::Min / 2: -1073741824

So, it should take around 34.3 seconds after being banned to be unbanned.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.