Fix mesh size in libp2p-pubsub (#14521)

* Fix Mesh size in libp2p-pubsub

* Update pubsub.go

* Update CHANGELOG.md
This commit is contained in:
zhaochonghe
2024-10-09 22:08:26 +08:00
committed by GitHub
parent e40d2cbd2c
commit 492c8af83f
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -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