Replies: 1 comment 10 replies
-
I don't understand why nodes would share their private keys with one another. If you are using kademlia you can always try to lookup the newly generated identity when joining the network. If the peerid already exist, generate a fresh id. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, in our network (https://github.com/firstbatchxyz/dkn-compute-node) we currently have the issue of people running multiple nodes using the same private key, and therefore having the same PeerId in different machines. We would like to prevent that, but could not yet see how to do it. Would love some ideas 🙏🏻
I have tried a simple check within
identify::Event::Received
handler, such as:but that did not catch the node with same PeerId.
For additional context, here is where we handle the identify event, and add the identified peer to our table.
Beta Was this translation helpful? Give feedback.
All reactions