Skip to content

spec/p2p: Define a structure for the P2P specification #598

Closed

Description

@cason

The high-level specification of the P2P layer adopted by CometBFT should be available under spec/p2p.

This directory, however, is not empty, and includes content produced at different times and with distinct approaches.

The goal of this issue is to:

  1. Identify, evaluate and classify the existing content
  2. Identify important components and execution flows to be documented
  3. Propose a new structure for the P2P specification, combining the existing content and contend to be produced

Current content

The P2P specification directory currently contains:

  • messages/: documents the message types adopted by the six standard reactors (block sync, consensus, evidence, mempool, PEX, and state sync). Includes also the channel IDs each of the reactors is responsible for.
    • This content needs to be reviewed, in some cases updated (e.g., PEX-reactor messages refer to retracted v0.35 release)
  • v0.34/: Documentation of p2p layer in Tendermint v0.34 tendermint/tendermint#9348. First attempt to fully document the implementation of the P2P layer in Tendermint Core. Despite referring to the v0.34.* releases, still applies to the current version.
    • Content to be reorganized for better readability. Currently is overly implementation-specific.
  • config.md, connection.md, node.md, peer.md: short summary of main components of the P2P layer, produced in late 2019 (Add Section for P2P tendermint/spec#53).
    • Relevant source of information, although partially outdated. Complementary to the content of v0.34/directory.

Definition of Done

  • Overview of the p2p package types and interfaces (implementation-specific)
  • Overview of main components of the P2P layer (abstract level)
  • Table of contents for the P2P specification

Activity

  1. added
    spec
    on Mar 28, 2023
  2. added this to the 2023-Q2 milestone on Mar 28, 2023
  3. self-assigned this
    on Mar 28, 2023
  4. josef-widder commented on Apr 3, 2023

    @josef-widder
    Contributor
  5. removed this from the 2023-Q2 milestone on May 5, 2023
  6. added
    meta
    on May 5, 2023
  7. added this to the 2023-Q2 milestone on Jun 1, 2023
  8. moved this from Todo to In Progress in CometBFT 2023on Jun 13, 2023
  9. cason commented on Jun 16, 2023

    @cason
    Author

    Part of the original content of this directory is going to be moved to a legacy-docs sub-directory. Handling this content is now tracked by a new issue: #981

  10. moved this from In Progress to Ready for Review in CometBFT 2023on Jun 16, 2023
  11. cason commented on Jun 16, 2023

    @cason
    Author

    This documentation was included in the knowledge base repository: cometbft/knowledge-base@880b60a

    The mempool document is already there in a much more advanced shape.

  12. moved this from Ready for Review to Done in CometBFT 2023on Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

metap2pspec

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions