Skip to content

Releases: libp2p/go-libp2p-kad-dht

v0.7.2

10 Apr 03:42
6b94711
Compare
Choose a tag to compare
  • Expose a WANActive function on the DualDHT to determine if the WAN DHT is active.
  • Clean up some errors from the Dual DHT.

v0.7.1

10 Apr 01:49
b33ccf3
Compare
Choose a tag to compare

Deduplicate addresses in the dual DHT's FindPeer.

Release v0.7.0

09 Apr 20:16
bfa23ff
Compare
Choose a tag to compare

Introduces a new "dual dht" that constructs two DHTs, one for a local LAN and one for the WAN.

v0.6.2

07 Apr 00:15
6c82b40
Compare
Choose a tag to compare

Make sure to check for nil/empty keys everywhere.

v0.6.1

06 Apr 05:39
4a4e60e
Compare
Choose a tag to compare

Quick fix for a recently introduced panic.

v0.5.2

13 Mar 23:42
dffa2f8
Compare
Choose a tag to compare
  • ProviderManager is now exposed through the IpfsDht
  • ProvidersKeyPrefix is now exposed through ProviderManager
  • No other public API changes
  • Update dependencies

v0.5.1

05 Mar 18:04
dbb3d2c
Compare
Choose a tag to compare
  • Reduce inbound stream idle timeout (time before we kill idle streams) from 10 to 1 minute. This should reduce memory consumption.
  • Update dependencies.
  • Make the routing table's latency tolerance (max latency of peers in the routing table) configurable.
  • Obey context when blocking on sending messages to peers.
  • Fix a timer leak.
  • Improve metrics.
    • Name metric views.
    • Count message and request attempts so the message count is always greater than the error count.
    • Don't count stream resets as message errors (unless we receive a partial message).
  • Make sure to cleanup all goroutines when canceling a query.

v0.5.0

07 Jan 17:42
95964c0
Compare
Choose a tag to compare

Switch to using multihashes in provider records. When providing a CID, we now strip the codec/version and provide the raw multihash. When searching for a CID, we do the same.

  • For CIDv0, this changes nothing. CIDv0 CIDs are just raw multihashes.
  • For CIDv1, new nodes and old nodes will not find each other. Given the current state of content routing and the fact that most files use CIDv0, this shouldn't cause too many issues (and it's better to do this before we fix the DHT).

This release also updates the bootstrap list to remove the bootstrappers with 1024 bit keys.

Finally, this improves the bucket refreshing logic to ensure we better connect to nodes close to us in the DHT.

v0.4.1

14 Dec 17:47
dd3d8fb
Compare
Choose a tag to compare
  • Prioritize closer peers in the connection manager. Otherwise, the connection manager can partition the network.
  • Add a feature for disabling storing providers/values (only usable in a forked network).
  • Correctly close the channel returned by RefreshRoutingTable.

v0.4.0

11 Dec 18:47
a7093c7
Compare
Choose a tag to compare
  • Updates go-libp2p-kbucket to fix a bug where we might have peers in our routing table but not use them.
  • Fixes a bug where we might run out of peers in our routing table, have connected peers, and not use them. We now try to re-fill our routing table from connected peers whenever we run out of peers in the DHT.
  • Updates go-multiaddr to switch to /p2p multiaddrs by default (hence the 0.4.0 version bump).