Skip to content
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

Refactorings of p2p crate #150

Merged
merged 14 commits into from
Nov 11, 2023
Merged

Refactorings of p2p crate #150

merged 14 commits into from
Nov 11, 2023

Commits on Oct 26, 2023

  1. [p2p] Refactor outbox system

    Instead of passing a mutable outbox to all sub-systems, have all
    sub-systems implement `Iterator`.
    cloudhead committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    3f57c32 View commit details
    Browse the repository at this point in the history
  2. [p2p] Remove Query command

    This was not used.
    cloudhead committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    923e7e5 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2023

  1. [p2p] Flatten event namespace

    Instead of having each manager module have its own events, we use
    a single event namespace. This simplifies the client event mapper,
    which can be removed in a subsequent commit.
    cloudhead committed Nov 5, 2023
    Configuration menu
    Copy the full SHA
    b67221a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e7a1432 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9b33954 View commit details
    Browse the repository at this point in the history
  4. [p2p] Use PeerNegotiated event to refactor

    Instead of relying on the return value when receiving a `verack`, we
    rely on the `PeerNegotiated` event, internalizing more of the logic.
    
    In passing, we remove the `Socket` abstraction, which wasn't used.
    cloudhead committed Nov 5, 2023
    Configuration menu
    Copy the full SHA
    53f0807 View commit details
    Browse the repository at this point in the history
  5. [p2p] Use event for propagating re-orgs

    Further reduce logic inside `fsm.rs`.
    cloudhead committed Nov 5, 2023
    Configuration menu
    Copy the full SHA
    1e83edb View commit details
    Browse the repository at this point in the history
  6. [p2p] Capitalize event strings

    Since these are used in logs, they should be consistent with the other
    logs.
    cloudhead committed Nov 5, 2023
    Configuration menu
    Copy the full SHA
    2a42724 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8747838 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1d84521 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e968f90 View commit details
    Browse the repository at this point in the history
  10. [p2p] Improve Error event

    cloudhead committed Nov 5, 2023
    Configuration menu
    Copy the full SHA
    d7e958f View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2023

  1. Configuration menu
    Copy the full SHA
    71cd341 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2e111bd View commit details
    Browse the repository at this point in the history