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

Conversation

cloudhead
Copy link
Owner

No description provided.

Instead of passing a mutable outbox to all sub-systems, have all
sub-systems implement `Iterator`.
This was not used.
@cloudhead cloudhead force-pushed the cloudhead/refactor-alternative branch from dd6a3d6 to 07e234c Compare November 5, 2023 13:10
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.
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.
Further reduce logic inside `fsm.rs`.
Since these are used in logs, they should be consistent with the other
logs.
@cloudhead cloudhead force-pushed the cloudhead/refactor-alternative branch from 07e234c to d7e958f Compare November 5, 2023 13:24
@cloudhead cloudhead marked this pull request as ready for review November 11, 2023 12:28
@cloudhead cloudhead merged commit 2e111bd into master Nov 11, 2023
4 checks passed
@cloudhead cloudhead deleted the cloudhead/refactor-alternative branch November 11, 2023 12:39
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