From 40762e13627975a06babf60d2c13424fcb178b1f Mon Sep 17 00:00:00 2001 From: vyzo Date: Sat, 5 Sep 2020 20:53:24 +0300 Subject: [PATCH] tweak duplicate/reject weights --- peer_gater.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peer_gater.go b/peer_gater.go index 78ad5090..37a7f5d0 100644 --- a/peer_gater.go +++ b/peer_gater.go @@ -19,9 +19,9 @@ import ( var ( DefaultPeerGaterRetainStats = 6 * time.Hour DefaultPeerGaterQuiet = time.Minute - DefaultPeerGaterDuplicateWeight = 0.25 + DefaultPeerGaterDuplicateWeight = 0.125 DefaultPeerGaterIgnoreWeight = 1.0 - DefaultPeerGaterRejectWeight = 4.0 + DefaultPeerGaterRejectWeight = 16.0 DefaultPeerGaterThreshold = 0.33 DefaultPeerGaterGlobalDecay = ScoreParameterDecay(2 * time.Minute) DefaultPeerGaterSourceDecay = ScoreParameterDecay(time.Hour)