From 12db9a4cf202deffa84f50691ec058abdfa2c154 Mon Sep 17 00:00:00 2001 From: Giovanni Petrantoni Date: Sat, 28 Nov 2020 00:23:09 +0900 Subject: [PATCH] TopicParams validation tuning --- libp2p/protocols/pubsub/gossipsub.nim | 2 -- 1 file changed, 2 deletions(-) diff --git a/libp2p/protocols/pubsub/gossipsub.nim b/libp2p/protocols/pubsub/gossipsub.nim index 739ef4c..fd094d0 100644 --- a/libp2p/protocols/pubsub/gossipsub.nim +++ b/libp2p/protocols/pubsub/gossipsub.nim @@ -274,8 +274,6 @@ proc validateParameters*(parameters: TopicParams): Result[void, cstring] = err("gossipsub: meshMessageDeliveriesThreshold parameter error, Should be a positive value") elif parameters.meshMessageDeliveriesCap < parameters.meshMessageDeliveriesThreshold: err("gossipsub: meshMessageDeliveriesCap parameter error, Should be >= meshMessageDeliveriesThreshold") - elif parameters.meshMessageDeliveriesWindow > 100.milliseconds: - err("gossipsub: meshMessageDeliveriesWindow parameter error, Should be small, 1-5ms") elif parameters.meshFailurePenaltyWeight >= 0.0: err("gossipsub: meshFailurePenaltyWeight parameter error, Should be a negative value") elif parameters.invalidMessageDeliveriesWeight >= 0.0: