Trying to send file buffer using libp2p example code #4372
Replies: 5 comments 3 replies
-
How are both nodes connected to each other? |
Beta Was this translation helpful? Give feedback.
-
i am using |
Beta Was this translation helpful? Give feedback.
-
do i need to dial into the other node as well?
|
Beta Was this translation helpful? Give feedback.
-
You seem to misunderstand what kademlia can and cannot do for you. If you haven't already, read/skim the spec to get an idea: https://github.com/libp2p/specs/tree/master/kad-dht. The actual kademlia paper is also worth a read. Somewhere you need to connect to at least one node of your DHT. If you only have two nodes in total, you need to connect to the other one. If you only ever plan on having two nodes, you might want to reconsider your use of a DHT altogether. |
Beta Was this translation helpful? Give feedback.
-
Will look into kad-DHT |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to send file from one terminal to other terminal by using the filesharing example. libp2p 0.52.2 version but the code keeps on running and doesn't give error on receiver side. both nodes are on the same computer with different seed. In receiver i don't get the provider is empty but both these nodes keep on running
Sender code
Receiver Code
Beta Was this translation helpful? Give feedback.
All reactions