From 45e1233b0528ca2a23a9ee955beed78a1c302e8a Mon Sep 17 00:00:00 2001 From: vyzo Date: Thu, 3 Sep 2020 13:34:15 +0300 Subject: [PATCH] further tweak gate threshold weights --- peer_gater.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peer_gater.go b/peer_gater.go index f0c7435..37d9ab7 100644 --- a/peer_gater.go +++ b/peer_gater.go @@ -216,7 +216,7 @@ func (pg *peerGater) AcceptFrom(p peer.ID) AcceptStatus { st := pg.getPeerStats(p) - total := st.deliver + 0.5*st.duplicate + st.ignore + 2*st.reject + total := st.deliver + 0.25*st.duplicate + st.ignore + 4*st.reject if total == 0 { return AcceptAll }