Skip to content

Add a code structure overview to the p2p README#2098

Open
oliv3rdrt wants to merge 1 commit into
mintlayer:masterfrom
oliv3rdrt:docs/1556-p2p-readme
Open

Add a code structure overview to the p2p README#2098
oliv3rdrt wants to merge 1 commit into
mintlayer:masterfrom
oliv3rdrt:docs/1556-p2p-readme

Conversation

@oliv3rdrt

Copy link
Copy Markdown

The p2p README documents the wire protocol but is marked as incomplete and does not describe how the crate itself is organised. This adds a short "Code structure" section that maps each module to its responsibility (the net backend, peer_manager, sync, message, protocol, the interface and rpc modules, and the config and error types), so a reader can get oriented before diving into the code. I also reworded the intro slightly and removed the old TODO line.

The descriptions are based on the module doc comments and the current layout of the crate. Addresses #1556.

The p2p README only documented the wire protocol and was marked as incomplete.
Add a short section describing the crate layout and what each module is
responsible for (net backend, peer_manager, sync, message, protocol, the
interface and rpc modules, and the config and error modules) so a reader can
orient themselves before diving into the code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant