-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4511: [Networking] Sets GossipSub RPC Inspector mandatory default r=yhassanzadeh13 a=yhassanzadeh13 This PR improves how the libp2p node, a component involved in network communication, is structured. Before the update, the RPC inspector suite, a vital tool for logging and monitoring network communication, was an optional add-on to the libp2p node. Now, it's a mandatory part of the libp2p node. What does this mean? The RPC inspector suite helps keep an eye on the network communications, ensuring they're healthy and secure. It's particularly useful for logging data and investigating suspicious activities. With the changes made, instead of setting a specific RPC inspector suite, you can replace its underlying mechanism (a factory). If you don’t provide one, don't worry – the system will use a default one. Another key change is organization and simplification. Before, the libp2p node and its components were intertwined complicatedly. The RPC inspector suite was closely connected to many other parts, which made the system harder to work with. This update neatly packs the RPC inspector suite inside the gossipsub builder. This, in turn, is neatly packed inside the libp2p node. This new arrangement makes the code cleaner and easier to understand and maintain. Additionally, this update lays the foundation that the libp2p node itself listens for important protocol-level events (i.e., cluster change) and passes the information to the necessary components. This makes things more efficient and takes some burden off the Flow node builder. Co-authored-by: Yahya Hassanzadeh <yhassanzadeh13@ku.edu.tr> Co-authored-by: Yahya Hassanzadeh <yhassanzadeh@ieee.org>
- Loading branch information
Showing
53 changed files
with
813 additions
and
651 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.