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
Platform: Linux core-VirtualBox 4.18.0-16-generic Update standard to version 7.1.2 🚀 #17~18.04.1-Ubuntu SMP Tue Feb 12 13:35:51 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Subsystem: libp2p-kad-dht ( ^0.14.9 )
Type: Question
Severity: High (probably just a wrong idea or a miss code)
Description:
This is my scenario:
Got two distinct Networks, conected by a router. Running on Core emulator as you can see on this image:
Each host has one node running, where n4 can discover n5 using libp2p-mdns AND n5 can discover n7 using libp2p-bootstrapers.
What i'm trying is to make n4 find n7 using n5, like is saying on this libp2p example.
Actually, in this example, node1 has access to node3 peerInfo, but in my case I dont have. So once I know n7 ID, I can create peerID manually on n4 using: peerid = PeerId.createFromB58String("<string id from n7>")
then find peer using:
What happens then is "Error: No peer found".
The order of execution is: n7, n5, n4
If you want, the code can be found here on teste1.js (n4), teste2.js (n5) and teste3.js (n7)
I'm using libp2p-rpc from my fork, where i'm updating this lib to work with newer version of libp2p.
Well, I don't know if i'm making mistakes, or if what i want is actually possible. Thats why i'm asking for help. Maybe you can guide me through this.
EDIT: I've tried using contentRouting.findProviders, but no success aswell.
Thanks
The text was updated successfully, but these errors were encountered:
TCP will replace the addresses of node.peerInfo.multiaddrs when it starts. So if you wait for the node to start you should be able to get a list of its up to date addresses from there.
How can i define my node addres, I mean: /ip4//tcp//<ipfs ?>/
You are likely having a connection issue. Either the nodes you need aren't actually connected, or peer discovery is happening before they are.
Libp2p currently doesn't dial to peers it discovers (unless it's actively crawling the DHT), so you will need to add the dial logic on the peer discovery event.
Type: Question
Severity: High (probably just a wrong idea or a miss code)
Description:
This is my scenario:
Got two distinct Networks, conected by a router. Running on Core emulator as you can see on this image:
Each host has one node running, where n4 can discover n5 using libp2p-mdns AND n5 can discover n7 using libp2p-bootstrapers.
What i'm trying is to make n4 find n7 using n5, like is saying on this libp2p example.
Actually, in this example, node1 has access to node3 peerInfo, but in my case I dont have. So once I know n7 ID, I can create peerID manually on n4 using:
peerid = PeerId.createFromB58String("<string id from n7>")
then find peer using:
What happens then is "Error: No peer found".
The order of execution is: n7, n5, n4
If you want, the code can be found here on teste1.js (n4), teste2.js (n5) and teste3.js (n7)
I'm using libp2p-rpc from my fork, where i'm updating this lib to work with newer version of libp2p.
Well, I don't know if i'm making mistakes, or if what i want is actually possible. Thats why i'm asking for help. Maybe you can guide me through this.
EDIT: I've tried using contentRouting.findProviders, but no success aswell.
Thanks
The text was updated successfully, but these errors were encountered: