Open pfrazee opened 6 years ago
We could use hash(IP + port)
for the Peer ID so that they're not choosable.
Though- if we're using hash(IP + port)
that's information we already know. We already avoid connecting to IP/ports that we're already connected to.
Peer IDs are supposed to be a way to detect when the peer is ==
when the IP/port is different, eg due to ipv6 vs ipv4 or public vs lan, right?
i think we can choose that options, default is ID open on DHT
Is this the reason why the @next version removed the deduplication
logic from peer-info
?
"Peer IDs" are used solely to deduplicate connections. If they were present on the DHT, we could avoid even attempting to connect to a peer which we've already connected to.
Things to consider: