Use the mesh_n value from NetworkLoad for PeerScoreSettings#5013
Merged
mergify[bot] merged 3 commits intosigp:unstablefrom Apr 11, 2024
Merged
Use the mesh_n value from NetworkLoad for PeerScoreSettings#5013mergify[bot] merged 3 commits intosigp:unstablefrom
mesh_n value from NetworkLoad for PeerScoreSettings#5013mergify[bot] merged 3 commits intosigp:unstablefrom
Conversation
Member
Author
|
Marking this as |
AgeManning
approved these changes
Apr 11, 2024
# Conflicts: # beacon_node/lighthouse_network/src/config.rs # beacon_node/lighthouse_network/src/service/gossipsub_scoring_parameters.rs # beacon_node/lighthouse_network/src/service/mod.rs
Member
|
@Mergifyio queue |
✅ The pull request has been merged automaticallyDetailsThe pull request has been merged automatically at d30ba97 |
This was referenced Apr 11, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue Addressed
We're using the libp2p default
gs_confighere forPeerScoreSettings:lighthouse/beacon_node/lighthouse_network/src/service/mod.rs
Line 180 in 6c0c41c
and then we build a Lighthouse specific one here and use it for Gossipsub
lighthouse/beacon_node/lighthouse_network/src/service/mod.rs
Lines 266 to 273 in 6c0c41c
The only value that is used for initialising
PeerScoreSettingsfrom thegs_configappears to be the mesh degreemesh_n, which is taken fromNetworkLoad.Proposed Changes
Build the correct
gs_configand use themesh_nvalue forPeerScoreSetttings.Note that the score settings needs a bit of rework, so this would just be a temporary fix.
The impact of this fix is that scoring will now use the
mesh_nfromNetworkLoad(default to4) rather than the libp2p2 hard coded value (6).