go-libp2p-pubsub-router
go-libp2p-pubsub-router copied to clipboard
Putting values in the datastore races with the DHT
Related to: https://github.com/libp2p/go-libp2p-kad-dht/issues/151.
I'm starting to think we should use a DHT record service instead of a datastore. The record service would end up owning the validator and would handle all record updates/validation internally.
FWIW I think this might be part of several abstractions that aren't quite appropriate around the DHT: https://github.com/libp2p/go-libp2p-kad-dht/issues/283#issuecomment-469125952.