sourcenetwork / defradb

DefraDB is a Peer-to-Peer Edge Database. It's the core data storage system for the Source Network Ecosystem, built with IPLD, LibP2P, CRDTs, and Semantic open web properties.
414 stars 41 forks source link

Depricate: go-libp2p is removing database-backed peerstore (pstoreds) #1902

Closed shahzadlone closed 1 month ago

shahzadlone commented 1 year ago

Note:

// Deprecated: The database-backed peerstore will be removed from go-libp2p in the future.
// Use the memory peerstore (pstoremem) instead.
// For more details see https://github.com/libp2p/go-libp2p/issues/2329
// and https://github.com/libp2p/go-libp2p/issues/2355.

In net/node.go we use "github.com/libp2p/go-libp2p/p2p/host/peerstore/pstoreds" that creates our peerstore from the underlying defra rootstore with the appropriate prefix. However now if we are forced to use pstoremem

nasdf commented 1 year ago

Related #1680

shahzadlone commented 1 year ago

https://github.com/sourcenetwork/defradb/pull/1889 will suppress this linter warning but leaving a todo in source-code as the dependencies are piling up.