fix linter complaint
This commit is contained in:
parent
9570ebfe0a
commit
f8f6e28985
@ -85,7 +85,7 @@ func GossipSub(pubsubOptions ...PubsubOpt) interface{} {
|
|||||||
|
|
||||||
// topic parameters
|
// topic parameters
|
||||||
Topics: map[string]*pubsub.TopicScoreParams{
|
Topics: map[string]*pubsub.TopicScoreParams{
|
||||||
build.BlocksTopic(nn): &pubsub.TopicScoreParams{
|
build.BlocksTopic(nn): {
|
||||||
// expected 10 blocks/min
|
// expected 10 blocks/min
|
||||||
TopicWeight: 0.1, // max is 250, max mesh penalty is -10, single invalid message is -100
|
TopicWeight: 0.1, // max is 250, max mesh penalty is -10, single invalid message is -100
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ func GossipSub(pubsubOptions ...PubsubOpt) interface{} {
|
|||||||
InvalidMessageDeliveriesWeight: -1000,
|
InvalidMessageDeliveriesWeight: -1000,
|
||||||
InvalidMessageDeliveriesDecay: 0.99972,
|
InvalidMessageDeliveriesDecay: 0.99972,
|
||||||
},
|
},
|
||||||
build.MessagesTopic(nn): &pubsub.TopicScoreParams{
|
build.MessagesTopic(nn): {
|
||||||
// expected > 1 tx/second
|
// expected > 1 tx/second
|
||||||
TopicWeight: 0.05, // max is 50, max mesh penalty is -5, single invalid message is -50
|
TopicWeight: 0.05, // max is 50, max mesh penalty is -5, single invalid message is -50
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user