Lower gossipFactor since we default to 160 peers (#2169)

And it might potentially send a bit more IHAVE messages then wanted.
This commit is contained in:
Giovanni Petrantoni 2020-12-11 20:15:34 +09:00 committed by GitHub
parent e59437c5e2
commit c91091197f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1561,6 +1561,7 @@ proc createEth2Node*(rng: ref BrHmacDrbgContext,
p.historyLength = 6 p.historyLength = 6
p.historyGossip = 3 p.historyGossip = 3
p.seenTTL = 385.seconds p.seenTTL = 385.seconds
p.gossipFactor = 0.05
p.validateParameters().tryGet() p.validateParameters().tryGet()
p p
pubsub = GossipSub.init( pubsub = GossipSub.init(