From c2eee379b9211aac70c408535f783716c2bc5ec0 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Tue, 11 Feb 2020 11:34:46 +0100 Subject: [PATCH] Increase the penality for being offline --- client/peerset/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/peerset/src/lib.rs b/client/peerset/src/lib.rs index c958912727007..ee3a12bc68df5 100644 --- a/client/peerset/src/lib.rs +++ b/client/peerset/src/lib.rs @@ -29,7 +29,7 @@ use std::{pin::Pin, task::Context, task::Poll}; /// We don't accept nodes whose reputation is under this value. const BANNED_THRESHOLD: i32 = 82 * (i32::min_value() / 100); /// Reputation change for a node when we get disconnected from it. -const DISCONNECT_REPUTATION_CHANGE: i32 = -10; +const DISCONNECT_REPUTATION_CHANGE: i32 = -256; /// Reserved peers group ID const RESERVED_NODES: &'static str = "reserved";