-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Decouple client.DB from net (#2768)
## Relevant issue(s) Resolves #2767 ## Description This PR make the `net` package no longer dependent on `client.DB`. Instead, on creation, the peer takes in a rootstore, a blockstore and an event bus. The p2p collections and replicators have been moved to `db`. Most of the code is reused but it now makes use of the event bus to update the peer's related state (pubsub topics and peer connections).
- Loading branch information
Showing
57 changed files
with
2,643 additions
and
2,229 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
Oops, something went wrong.