Merge branch 'unstable' into feat/splitview
This commit is contained in:
commit
0f679d9463
|
@ -2304,39 +2304,39 @@ proc createEth2Node*(rng: ref HmacDrbgContext,
|
||||||
err(ValidationResult.Reject)
|
err(ValidationResult.Reject)
|
||||||
|
|
||||||
let
|
let
|
||||||
params = GossipSubParams(
|
params = GossipSubParams.init(
|
||||||
explicit: true,
|
explicit = true,
|
||||||
pruneBackoff: chronos.minutes(1),
|
pruneBackoff = chronos.minutes(1),
|
||||||
unsubscribeBackoff: chronos.seconds(10),
|
unsubscribeBackoff = chronos.seconds(10),
|
||||||
floodPublish: true,
|
floodPublish = true,
|
||||||
gossipFactor: 0.05,
|
gossipFactor = 0.05,
|
||||||
d: 8,
|
d = 8,
|
||||||
dLow: 6,
|
dLow = 6,
|
||||||
dHigh: 12,
|
dHigh = 12,
|
||||||
dScore: 6,
|
dScore = 6,
|
||||||
dOut: 6 div 2, # less than dlow and no more than dlow/2
|
dOut = 6 div 2, # less than dlow and no more than dlow/2
|
||||||
dLazy: 6,
|
dLazy = 6,
|
||||||
heartbeatInterval: chronos.milliseconds(700),
|
heartbeatInterval = chronos.milliseconds(700),
|
||||||
historyLength: 6,
|
historyLength = 6,
|
||||||
historyGossip: 3,
|
historyGossip = 3,
|
||||||
fanoutTTL: chronos.seconds(60),
|
fanoutTTL = chronos.seconds(60),
|
||||||
# 2 epochs matching maximum valid attestation lifetime
|
# 2 epochs matching maximum valid attestation lifetime
|
||||||
seenTTL: chronos.seconds(int(SECONDS_PER_SLOT * SLOTS_PER_EPOCH * 2)),
|
seenTTL = chronos.seconds(int(SECONDS_PER_SLOT * SLOTS_PER_EPOCH * 2)),
|
||||||
gossipThreshold: -4000,
|
gossipThreshold = -4000,
|
||||||
publishThreshold: -8000,
|
publishThreshold = -8000,
|
||||||
graylistThreshold: -16000, # also disconnect threshold
|
graylistThreshold = -16000, # also disconnect threshold
|
||||||
opportunisticGraftThreshold: 0,
|
opportunisticGraftThreshold = 0,
|
||||||
decayInterval: chronos.seconds(12),
|
decayInterval = chronos.seconds(12),
|
||||||
decayToZero: 0.01,
|
decayToZero = 0.01,
|
||||||
retainScore: chronos.seconds(385),
|
retainScore = chronos.seconds(385),
|
||||||
appSpecificWeight: 0.0,
|
appSpecificWeight = 0.0,
|
||||||
ipColocationFactorWeight: -53.75,
|
ipColocationFactorWeight = -53.75,
|
||||||
ipColocationFactorThreshold: 3.0,
|
ipColocationFactorThreshold = 3.0,
|
||||||
behaviourPenaltyWeight: -15.9,
|
behaviourPenaltyWeight = -15.9,
|
||||||
behaviourPenaltyDecay: 0.986,
|
behaviourPenaltyDecay = 0.986,
|
||||||
disconnectBadPeers: true,
|
disconnectBadPeers = true,
|
||||||
directPeers: directPeers,
|
directPeers = directPeers,
|
||||||
bandwidthEstimatebps: config.bandwidthEstimate.get(100_000_000)
|
bandwidthEstimatebps = config.bandwidthEstimate.get(100_000_000)
|
||||||
)
|
)
|
||||||
pubsub = GossipSub.init(
|
pubsub = GossipSub.init(
|
||||||
switch = switch,
|
switch = switch,
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 458b0885dd276afeb81b9a6d431dde79e99f2b01
|
Subproject commit bb97a9de7931c5e7f8706c5bade8e0cc7fa86848
|
Loading…
Reference in New Issue