mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-01-11 05:26:02 +00:00
TopicParams validation tuning
This commit is contained in:
parent
809df8d04d
commit
12db9a4cf2
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user