Felix Lange
1e1b18637e
p2p/discv5: fix test on go 1.14 ( #20724 )
5 years ago
Felix Lange
26f538b0e5
p2p/enode, p2p/discv5: fix URL parsing test for go 1.12.8 ( #19963 )
5 years ago
Zsolt Felfoldi
49da42983a
p2p/discv5: added new topic discovery package
8 years ago
Felix Lange
d1f507b7f1
p2p/discover: support incomplete node URLs, add Resolve
9 years ago
Felix Lange
bfbcfbe4a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a
.
9 years ago
Felix Lange
3f047be5aa
all: update license headers to distiguish GPL/LGPL
...
All code outside of cmd/ is licensed as LGPL. The headers
now reflect this by calling the whole work "the go-ethereum library".
9 years ago
Felix Lange
ea54283b30
all: update license information
9 years ago
Felix Lange
a8e4cb6dfe
p2p/discover: use separate rand.Source instances in tests
...
rand.Source isn't safe for concurrent use.
10 years ago
Felix Lange
2adcc31bb4
p2p/discover: new distance metric based on sha3(id)
...
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.
10 years ago
Felix Lange
72ab6d3255
p2p/discover: track sha3(ID) in Node
10 years ago
Felix Lange
fc747ef4a6
p2p/discover: new endpoint format
...
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.
10 years ago
Felix Lange
2c505efd1e
p2p/discover: add NodeID.Pubkey
10 years ago
Felix Lange
8564eb9f7e
p2p/discover: add node URL functions, distinguish TCP/UDP ports
...
The discovery RPC protocol does not yet distinguish TCP and UDP ports.
But it can't hurt to do so in our internal model.
10 years ago