aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discover/node_test.go
Commit message (Collapse)AuthorAgeFilesLines
* p2p/discover: new distance metric based on sha3(id)Felix Lange2015-05-061-9/+13
| | | | | | | The previous metric was pubkey1^pubkey2, as specified in the Kademlia paper. We missed that EC public keys are not uniformly distributed. Using the hash of the public keys addresses that. It also makes it a bit harder to generate node IDs that are close to a particular node.
* p2p/discover: track sha3(ID) in NodeFelix Lange2015-04-301-28/+43
|
* p2p/discover: new endpoint formatFelix Lange2015-04-301-13/+13
| | | | | | This commit changes the discovery protocol to use the new "v4" endpoint format, which allows for separate UDP and TCP ports and makes it possible to discover the UDP address after NAT.
* p2p/discover: add NodeID.PubkeyFelix Lange2015-03-041-0/+18
|
* p2p/discover: add node URL functions, distinguish TCP/UDP portsFelix Lange2015-02-071-0/+201
The discovery RPC protocol does not yet distinguish TCP and UDP ports. But it can't hurt to do so in our internal model.