You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 12, 2021. It is now read-only.
The current host example doesn't default to becoming a self-sustaining DHT mesh. It would be useful to add an example using the Dual DHT from go-libp2p-kad-dht to demonstrate that configuration.
The text was updated successfully, but these errors were encountered:
I ran into the issue of DHT Get Value not working because nodes aren't found a few days ago when playing around with some of the examples. I created a new example that uses the dht.PutValue and dht.GetValue to put and retrieve values from the dht. It worked fine in the examples repo, but not outside of it.
The reason why it worked in the examples is that it uses go-libp2p-kad-dht version 0.5.0. My example outside of the repo uses version 0.7.10 which always returned an error when trying to dht.GetValue or dht.PutValue.
I replaced the dht.New(ctx, host) with dual.New(ctx, host) from github.com/libp2p/go-libp2p-kad-dht/dual and it worked. I am still trying to wrap my head around why it worked exactly
The current host example doesn't default to becoming a self-sustaining DHT mesh. It would be useful to add an example using the
Dual
DHT fromgo-libp2p-kad-dht
to demonstrate that configuration.The text was updated successfully, but these errors were encountered: