During development, while trying to get JS-IPFS and Helia to interact with Kubo, I setup using the KAD DHT.
With the @libp2p/kad-dht DHT content routing logic findProviders to the Network class and ultimately the RPC code for GET_PROVIDERS is sent out, it tries to do a multistream negotiation for /ipfs/kad/1.0.0 and /ipfs/lan/kad/1.0.0.
As this is not registered with kubo, it fails and gets a na. It seems this is registered on another subsystem service that's get triggered in some cases, which sets the dht.host.SetStreamHandler but that's very different logic to the multistream?
Due to this, I am having to move forward with the JS implementations since this is a blocking problem in the code for me.
Checklist
Installation method
built from source
Version
Config
Description
During development, while trying to get JS-IPFS and Helia to interact with Kubo, I setup using the KAD DHT.
With the
@libp2p/kad-dht
DHT content routing logicfindProviders
to the Network class and ultimately the RPC code forGET_PROVIDERS
is sent out, it tries to do a multistream negotiation for/ipfs/kad/1.0.0
and/ipfs/lan/kad/1.0.0
.As this is not registered with kubo, it fails and gets a
na
. It seems this is registered on another subsystem service that's get triggered in some cases, which sets thedht.host.SetStreamHandler
but that's very different logic to the multistream?Due to this, I am having to move forward with the JS implementations since this is a blocking problem in the code for me.
Thanks.