Skip to content
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

network/litep2p: Reputation not adjusted on peer disconnections #6223

Open
lexnv opened this issue Oct 24, 2024 · 0 comments
Open

network/litep2p: Reputation not adjusted on peer disconnections #6223

lexnv opened this issue Oct 24, 2024 · 0 comments
Labels
I2-bug The node fails to follow expected behavior. T0-node This PR/Issue is related to the topic “node”.

Comments

@lexnv
Copy link
Contributor

lexnv commented Oct 24, 2024

Peerstore does not implement report_disconnect method to adjust the reputation of peers when they disconnect.

I am wondering what is the impact of not implementing this and if it may contain any side effects wrt connection stability.

fn report_disconnect(&self, _peer: PeerId) {
unimplemented!();
}

libp2p

In libp2p the reputation update happens on multiple code paths (disconnects / dial failures), via the protocol controller .dropped() calls:

fn report_disconnect(&mut self, peer_id: PeerId) {
self.peer_store.report_disconnect(peer_id.into());
}

cc @paritytech/networking

@lexnv lexnv added T0-node This PR/Issue is related to the topic “node”. I2-bug The node fails to follow expected behavior. labels Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I2-bug The node fails to follow expected behavior. T0-node This PR/Issue is related to the topic “node”.
Projects
None yet
Development

No branches or pull requests

1 participant