-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kad: Providers part 7: better types and public API, public addresses …
…& known providers (#246) This PR introduces the following changes: 1. Introduces a better type `ContentProvider` without a burden of `KademliaPeer`. 2. Simplifies public litep2p content providers API. 3. Uses `PublicAddresses` API when advertising local providers. 4. Adds locally known providers to discovered providers when performing `GET_PROVIDERS` request. 5. Emits `IncomingProvider` event when remote node registers as a provider via `ADD_PROVIDER` request.
- Loading branch information
1 parent
e9f4f97
commit 1a0325c
Showing
8 changed files
with
331 additions
and
224 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
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.