chore!(ethexe-network): Unique protocol versioning#5147
Conversation
Changed Files
|
Summary of ChangesHello @ark0f, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request standardizes network protocol versioning by hardcoding "1.0.0" for key services, moving away from dynamic package versioning. It also refines the peer scoring system by removing explicit penalties for unsupported protocols, focusing instead on data integrity and network behavior. Furthermore, the Kademlia DHT implementation has been improved to be more resilient to unknown record types, enhancing backward compatibility and future extensibility. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces several improvements to the network layer. The main change is hardcoding protocol versions for sub-protocols like db-sync, injected-tx, and kad, decoupling them from the crate version. This enhances protocol stability.
In line with this, the concept of penalizing peers for UnsupportedProtocol has been removed entirely, including the identify protocol version check. This allows for more flexible peer connections where nodes with different versions can still communicate over shared sub-protocols.
Additionally, this PR improves forward compatibility in the Kademlia implementation by gracefully handling unknown record types, which is a valuable enhancement for future updates.
The changes are well-implemented. I have one suggestion to improve the clarity of a test case, which is included in the specific comments.
This reverts commit 5a1ac23.
No description provided.