HotShot icon indicating copy to clipboard operation
HotShot copied to clipboard

[LIBP2P] - Implement `Storage` for DHT

Open bfish713 opened this issue 1 year ago • 0 comments

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

bfish713 avatar Feb 15 '24 04:02 bfish713