-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
enhancementNew feature or requestNew feature or requestmediumRequires some knowledge of the codebaseRequires some knowledge of the codebase
Milestone
Description
Problem Statement
When the number of published Kademlia content providers is in hundred thousands or millions, it takes considerable time to publish them all on the node restart. Because there is no need to publish providers that were published before the restart and shouldn't be refreshed yet, we can extend the Kademlia API so we can add providers without publishing them, providing a time when they should be refreshed. We should also be able to save the providers and their planned refresh time when node is shutting down.
Required Changes
To make this work, the following functionality should be added:
KademliaHandle::resume_providing(key, refresh_time)that puts a provider in the local store and schedules its refresh.KademliaHandle::local_providers() -> (Key, Instant)that allows to save all local providers and their refresh times.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestmediumRequires some knowledge of the codebaseRequires some knowledge of the codebase
Type
Projects
Status
No status