-
Notifications
You must be signed in to change notification settings - Fork 797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - Remove deficit gossipsub scoring during topic transition #4486
[Merged by Bors] - Remove deficit gossipsub scoring during topic transition #4486
Conversation
…gossipsub-scoring # Conflicts: # beacon_node/network/Cargo.toml # beacon_node/network/src/service.rs # beacon_node/network/src/service/tests.rs
…no getter function to obtain `TopicScoreParams`
# Conflicts: # beacon_node/lighthouse_network/src/service/mod.rs # beacon_node/network/src/service/tests.rs
4168d1b
to
75ac306
Compare
9e54d24
to
1180022
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of grammar corrections and a suggestion to make code a bit clearer, but otherwise I think this looks like what the original issue requested.
beacon_node/network/src/service.rs
Outdated
|
||
#[cfg(test)] | ||
#[allow(dead_code)] | ||
fn get_topic_params( | ||
&self, | ||
topic: GossipTopic, | ||
) -> Option<&lighthouse_network::libp2p::gossipsub::TopicScoreParams> { | ||
self.libp2p.get_topic_params(topic) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#[allow(dead_code)]
annotations I think are generally confusing. It's not clear if this is used or not in the tests (because if yes then the #[cfg(test)]
should be enough).
To better align this with where it's used, you could move it to beacon_node/network/src/service/tests.rs
like this
// use tokio::runtime::Runtime;
// use types::{Epoch, EthSpec, ForkName, MinimalEthSpec, SubnetId};
impl<T: beacon_chain::BeaconChainTypes> NetworkService<T> {
fn get_topic_params(
&self,
topic: GossipTopic,
) -> Option<&lighthouse_network::libp2p::gossipsub::TopicScoreParams> {
self.libp2p.get_topic_params(topic)
}
}
// fn get_logger(actual_log: bool) -> Logger {
// .. rest of the code
and it will not require any extra annotation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me also. Just pending @divagant-martian comments
Co-authored-by: Divma <[email protected]>
Co-authored-by: Divma <[email protected]>
## Issue Addressed This PR closes #3237 ## Proposed Changes Remove topic weight of old topics when the fork happens. ## Additional Info - Divided `NetworkService::start()` into `NetworkService::build()` and `NetworkService::start()` for ease of testing.
Build failed (retrying...): |
## Issue Addressed This PR closes #3237 ## Proposed Changes Remove topic weight of old topics when the fork happens. ## Additional Info - Divided `NetworkService::start()` into `NetworkService::build()` and `NetworkService::start()` for ease of testing.
Build failed: |
We are in the process of fixing the CI, so this should be able to merged smoother |
bors r+ |
## Issue Addressed This PR closes #3237 ## Proposed Changes Remove topic weight of old topics when the fork happens. ## Additional Info - Divided `NetworkService::start()` into `NetworkService::build()` and `NetworkService::start()` for ease of testing.
Build failed (retrying...): |
## Issue Addressed This PR closes #3237 ## Proposed Changes Remove topic weight of old topics when the fork happens. ## Additional Info - Divided `NetworkService::start()` into `NetworkService::build()` and `NetworkService::start()` for ease of testing.
Build failed (retrying...): |
bors r- |
Canceled. |
bors r+ |
## Issue Addressed This PR closes #3237 ## Proposed Changes Remove topic weight of old topics when the fork happens. ## Additional Info - Divided `NetworkService::start()` into `NetworkService::build()` and `NetworkService::start()` for ease of testing.
Pull request successfully merged into unstable. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page.
|
## Issue Addressed This PR closes sigp#3237 ## Proposed Changes Remove topic weight of old topics when the fork happens. ## Additional Info - Divided `NetworkService::start()` into `NetworkService::build()` and `NetworkService::start()` for ease of testing.
This PR closes sigp#3237 Remove topic weight of old topics when the fork happens. - Divided `NetworkService::start()` into `NetworkService::build()` and `NetworkService::start()` for ease of testing.
This PR closes sigp#3237 Remove topic weight of old topics when the fork happens. - Divided `NetworkService::start()` into `NetworkService::build()` and `NetworkService::start()` for ease of testing.
Issue Addressed
This PR closes #3237
Proposed Changes
Remove topic weight of old topics when the fork happens.
Additional Info
NetworkService::start()
intoNetworkService::build()
andNetworkService::start()
for ease of testing.