From 492c8af83f4b032dad9d3f77f7bed2efc841544e Mon Sep 17 00:00:00 2001 From: zhaochonghe <41711151+zhaochonghe@users.noreply.github.com> Date: Wed, 9 Oct 2024 22:08:26 +0800 Subject: [PATCH] Fix mesh size in libp2p-pubsub (#14521) * Fix Mesh size in libp2p-pubsub * Update pubsub.go * Update CHANGELOG.md --- CHANGELOG.md | 1 + beacon-chain/p2p/pubsub.go | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 759b3cad264f..02ec66722300 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -81,6 +81,7 @@ The format is based on Keep a Changelog, and this project adheres to Semantic Ve - Light client support: fix light client attested header execution fields' wrong version bug. - Testing: added custom matcher for better push settings testing. - Registered `GetDepositSnapshot` Beacon API endpoint. +- Fixed mesh size by appending `gParams.Dhi = gossipSubDhi` ### Security diff --git a/beacon-chain/p2p/pubsub.go b/beacon-chain/p2p/pubsub.go index 3549841c9034..5a1f229313ce 100644 --- a/beacon-chain/p2p/pubsub.go +++ b/beacon-chain/p2p/pubsub.go @@ -182,6 +182,7 @@ func pubsubGossipParam() pubsub.GossipSubParams { gParams := pubsub.DefaultGossipSubParams() gParams.Dlo = gossipSubDlo gParams.D = gossipSubD + gParams.Dhi = gossipSubDhi gParams.HeartbeatInterval = gossipSubHeartbeatInterval gParams.HistoryLength = gossipSubMcacheLen gParams.HistoryGossip = gossipSubMcacheGossip