diff --git a/peer_gater.go b/peer_gater.go index 430978af..5f5b417f 100644 --- a/peer_gater.go +++ b/peer_gater.go @@ -159,7 +159,7 @@ func (pg *peerGater) AcceptFrom(p peer.ID) AcceptStatus { st := pg.getPeerStats(p) - total := st.deliver + st.duplicate + st.ignore + st.reject + total := st.deliver + 0.5*st.duplicate + st.ignore + 2*st.reject if total == 0 { return AcceptAll }