Merge pull request #4183 from filecoin-project/fix/relax-colocation-factor

relax pubsub IPColocationFactorThreshold to 5
This commit is contained in:
Łukasz Magiera 2020-10-06 10:37:25 +02:00 committed by GitHub
commit 1a170e18ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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{}{},