libp2p / go-libp2p-pubsub-router

MIT License
22 stars 12 forks source link

Putting values in the datastore races with the DHT #25

Open Stebalien opened 5 years ago

Stebalien commented 5 years ago

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.

anacrolix commented 5 years ago

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.