HotShot
HotShot copied to clipboard
[LIBP2P] - Implement `Storage` for DHT
What is this task and why do we need to work on it?
Currently we use a combination of a home rolled cached that we splice in and the default MemoryStorage. The cache is probably not really necessary since we fixed the DHT slow retrievals and MemoryStorage is doing some caching under the hood.
What we want in the long run is a custom storage in the DHT that acts as both a cache and persists some routing state so we can reuse it if the node is restarted.
What work will need to be done to complete this task?
No response
Are there any other details to include?
No response
What are the acceptance criteria to close this issue?
Remove the Cache in the DHT behavior and integrate with the libp2p storage trait for this behaviour
Branch work will be merged to (if not the default branch)
No response