From 885989f3df4c251d596053e8a26bc4c48ecdfe3f Mon Sep 17 00:00:00 2001 From: diegomrsantos Date: Wed, 27 Mar 2024 16:53:02 +0100 Subject: [PATCH] bump libp2p (#6148) --- beacon_chain/networking/eth2_network.nim | 64 ++++++++++++------------ vendor/nim-libp2p | 2 +- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/beacon_chain/networking/eth2_network.nim b/beacon_chain/networking/eth2_network.nim index 48f7ff13e..4c2628e4f 100644 --- a/beacon_chain/networking/eth2_network.nim +++ b/beacon_chain/networking/eth2_network.nim @@ -2304,39 +2304,39 @@ proc createEth2Node*(rng: ref HmacDrbgContext, err(ValidationResult.Reject) let - params = GossipSubParams( - explicit: true, - pruneBackoff: chronos.minutes(1), - unsubscribeBackoff: chronos.seconds(10), - floodPublish: true, - gossipFactor: 0.05, - d: 8, - dLow: 6, - dHigh: 12, - dScore: 6, - dOut: 6 div 2, # less than dlow and no more than dlow/2 - dLazy: 6, - heartbeatInterval: chronos.milliseconds(700), - historyLength: 6, - historyGossip: 3, - fanoutTTL: chronos.seconds(60), + params = GossipSubParams.init( + explicit = true, + pruneBackoff = chronos.minutes(1), + unsubscribeBackoff = chronos.seconds(10), + floodPublish = true, + gossipFactor = 0.05, + d = 8, + dLow = 6, + dHigh = 12, + dScore = 6, + dOut = 6 div 2, # less than dlow and no more than dlow/2 + dLazy = 6, + heartbeatInterval = chronos.milliseconds(700), + historyLength = 6, + historyGossip = 3, + fanoutTTL = chronos.seconds(60), # 2 epochs matching maximum valid attestation lifetime - seenTTL: chronos.seconds(int(SECONDS_PER_SLOT * SLOTS_PER_EPOCH * 2)), - gossipThreshold: -4000, - publishThreshold: -8000, - graylistThreshold: -16000, # also disconnect threshold - opportunisticGraftThreshold: 0, - decayInterval: chronos.seconds(12), - decayToZero: 0.01, - retainScore: chronos.seconds(385), - appSpecificWeight: 0.0, - ipColocationFactorWeight: -53.75, - ipColocationFactorThreshold: 3.0, - behaviourPenaltyWeight: -15.9, - behaviourPenaltyDecay: 0.986, - disconnectBadPeers: true, - directPeers: directPeers, - bandwidthEstimatebps: config.bandwidthEstimate.get(100_000_000) + seenTTL = chronos.seconds(int(SECONDS_PER_SLOT * SLOTS_PER_EPOCH * 2)), + gossipThreshold = -4000, + publishThreshold = -8000, + graylistThreshold = -16000, # also disconnect threshold + opportunisticGraftThreshold = 0, + decayInterval = chronos.seconds(12), + decayToZero = 0.01, + retainScore = chronos.seconds(385), + appSpecificWeight = 0.0, + ipColocationFactorWeight = -53.75, + ipColocationFactorThreshold = 3.0, + behaviourPenaltyWeight = -15.9, + behaviourPenaltyDecay = 0.986, + disconnectBadPeers = true, + directPeers = directPeers, + bandwidthEstimatebps = config.bandwidthEstimate.get(100_000_000) ) pubsub = GossipSub.init( switch = switch, diff --git a/vendor/nim-libp2p b/vendor/nim-libp2p index 458b0885d..bb97a9de7 160000 --- a/vendor/nim-libp2p +++ b/vendor/nim-libp2p @@ -1 +1 @@ -Subproject commit 458b0885dd276afeb81b9a6d431dde79e99f2b01 +Subproject commit bb97a9de7931c5e7f8706c5bade8e0cc7fa86848