From 0f2435f551ab6d947d1927c6eef373eef435c942 Mon Sep 17 00:00:00 2001 From: Giovanni Petrantoni <7008900+sinkingsugar@users.noreply.github.com> Date: Sat, 3 Oct 2020 09:26:45 +0900 Subject: [PATCH] better opportunistic grafting score (when score is disabled) (#389) --- libp2p/protocols/pubsub/gossipsub.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/protocols/pubsub/gossipsub.nim b/libp2p/protocols/pubsub/gossipsub.nim index 1122d5b..9d7bf6b 100644 --- a/libp2p/protocols/pubsub/gossipsub.nim +++ b/libp2p/protocols/pubsub/gossipsub.nim @@ -177,7 +177,7 @@ proc init*(_: type[GossipSubParams]): GossipSubParams = gossipThreshold: -10, publishThreshold: -100, graylistThreshold: -10000, - opportunisticGraftThreshold: 1, + opportunisticGraftThreshold: 0, decayInterval: 1.seconds, decayToZero: 0.01, retainScore: 10.seconds,