-
Notifications
You must be signed in to change notification settings - Fork 280
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
feat(p2p): send goodbye messages on disconnecting to peers #10920
base: master
Are you sure you want to change the base?
Conversation
…dency with reqresp
This stack of pull requests is managed by Graphite. Learn more about stacking. |
@@ -144,95 +143,6 @@ export class LibP2PService<T extends P2PClientType> extends WithTracer implement | |||
}; | |||
} | |||
|
|||
/** |
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.
I just moved start and stop below the static initialiser just so that it was closer to the constructor
private proofVerifier: ClientProtocolCircuitVerifier, | ||
private worldStateSynchronizer: WorldStateSynchronizer, | ||
private telemetry: TelemetryClient, | ||
private requestResponseHandlers: ReqRespSubProtocolHandlers = DEFAULT_SUB_PROTOCOL_HANDLERS, |
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.
No idea why i included these as a dependency, they are now just constructed in the start function, alongside the validators
7f1e79d
to
fa2d595
Compare
Overview
When shutting down the node, or when disconnecting from a node that has suffered from a low peer score, we send a good bye message.
This goodbye message prompts the other node to also close their connection, allowing them to connect to more peers
Features:
Misc:
to split out the peer scoring component such that reqresp could still manage peer scores