pubsub: set behaviour penalty threshold, increase IWANT follow up time to 5s
This commit is contained in:
parent
67bf952c5a
commit
98d6d25c74
@ -31,6 +31,7 @@ func init() {
|
|||||||
pubsub.GossipSubDhi = 12
|
pubsub.GossipSubDhi = 12
|
||||||
pubsub.GossipSubDlazy = 12
|
pubsub.GossipSubDlazy = 12
|
||||||
pubsub.GossipSubDirectConnectInitialDelay = 30 * time.Second
|
pubsub.GossipSubDirectConnectInitialDelay = 30 * time.Second
|
||||||
|
pubsub.GossipSubIWantFollowupTime = 5 * time.Second
|
||||||
}
|
}
|
||||||
func ScoreKeeper() *dtypes.ScoreKeeper {
|
func ScoreKeeper() *dtypes.ScoreKeeper {
|
||||||
return new(dtypes.ScoreKeeper)
|
return new(dtypes.ScoreKeeper)
|
||||||
@ -111,6 +112,7 @@ func GossipSub(in GossipIn) (service *pubsub.PubSub, err error) {
|
|||||||
|
|
||||||
// P7: behavioural penalties, decay after 1hr
|
// P7: behavioural penalties, decay after 1hr
|
||||||
BehaviourPenaltyWeight: -10,
|
BehaviourPenaltyWeight: -10,
|
||||||
|
BehaviourPenaltyThreshold: 3,
|
||||||
BehaviourPenaltyDecay: pubsub.ScoreParameterDecay(time.Hour),
|
BehaviourPenaltyDecay: pubsub.ScoreParameterDecay(time.Hour),
|
||||||
|
|
||||||
DecayInterval: pubsub.DefaultDecayInterval,
|
DecayInterval: pubsub.DefaultDecayInterval,
|
||||||
|
Loading…
Reference in New Issue
Block a user