-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"ipfs stats dht" doesn't work with Routing.Type=custom #9482
Comments
This is a problem because Kubo 0.18 will use Routing.Type=auto by default (#9475) and Not a blocker for RC1, but we need to fix this before final release. |
I'm trying to find a solution to this problem. Before, If we had activated DHT we were using dualDHT by default, so there are a lot of places where we are supposing that we have this DHT implementation, and querying WAN or LAN depending on the case. With the new routing modular system, we can have from 0 to N DHTs, and we cannot know if it is WAN or LAN. These are the commands on the need of having a DHT instance instead of a Router:
Proposed solution
@lidel WDYT? |
@ajnavarro sgtm. If this makes things easier, for Kubo 0.18 we only need to fix stats for the default behavior, which is |
@lidel Sounds good. I'll focus on fixing the problem with the default config first, and tackle the general problem after. |
@lidel this is needed to be able to get DHT routers from the parallel router: libp2p/go-libp2p-routing-helpers#68 |
Fixes default auto mode, but Routing.Type=custom needs more work. Continued in #9482
Fixes default auto mode, but Routing.Type=custom needs more work. Continued in #9482
This is a larger problem than just We should refactor and simplify here, part of the reason this happened is because the wiring is very complex due to fx and interface abuse. |
Fixes: ipfs#9704 Fixes: ipfs#9702 Fixes: ipfs#9482 Depends on: ipfs/boxo#273
Fixes default auto mode, but Routing.Type=custom needs more work. Continued in ipfs/kubo#9482
Fixes default auto mode, but Routing.Type=custom needs more work. Continued in ipfs/kubo#9482
Checklist
Installation method
built from source
Version
Config
...
Description
When using custom routing, for example using the config detailed in the v0.16 release notes, the
ipfs stats dht
command returnError: routing service is not a DHT
, even though there is a DHT in there.I understand the relative complexity of searching for a DHT in a custom routing pipeline and the possible edge cases, but it would be nice if that command would work in the (very common) case where there is exactly one DHT. Not only DHT stats are obviously useful, but my understanding is that it's also the only way to figure out if the accelerated DHT is ready to publish.
The text was updated successfully, but these errors were encountered: