aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discover/node_test.go
Commit message (Collapse)AuthorAgeFilesLines
* p2p: add network simulation framework (#14982)Lewis Marshall2017-09-251-0/+30
| | | | | | This commit introduces a network simulation framework which can be used to run simulated networks of devp2p nodes. The intention is to use this for testing protocols, performing benchmarks and visualising emergent network behaviour.
* p2p/discover: support incomplete node URLs, add ResolveFelix Lange2015-12-181-20/+68
|
* all: fix license headers one more timeFelix Lange2015-07-241-1/+1
| | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-231-4/+4
| | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* all: update license informationFelix Lange2015-07-071-0/+16
|
* p2p/discover: use separate rand.Source instances in testsFelix Lange2015-06-101-11/+14
| | | | rand.Source isn't safe for concurrent use.
* 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.