From de390749fcb98912b03fd7c8ff538fb1f4bdfc0d Mon Sep 17 00:00:00 2001 From: vyzo Date: Tue, 6 Oct 2020 09:11:44 +0300 Subject: [PATCH] set pubsub IPColocationFactor to 5 --- node/modules/lp2p/pubsub.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/modules/lp2p/pubsub.go b/node/modules/lp2p/pubsub.go index aefb06d89..7dca3608f 100644 --- a/node/modules/lp2p/pubsub.go +++ b/node/modules/lp2p/pubsub.go @@ -223,8 +223,8 @@ func GossipSub(in GossipIn) (service *pubsub.PubSub, err error) { }, AppSpecificWeight: 1, - // This sets the IP colocation threshold to 1 peer per - IPColocationFactorThreshold: 1, + // This sets the IP colocation threshold to 5 peers before we apply penalties + IPColocationFactorThreshold: 5, IPColocationFactorWeight: -100, // TODO we want to whitelist IPv6 /64s that belong to datacenters etc // IPColocationFactorWhitelist: map[string]struct{}{},