aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discover/table.go
Commit message (Collapse)AuthorAgeFilesLines
* p2p/discover: new distance metric based on sha3(id)Felix Lange2015-05-061-24/+30
| | | | | | | 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-5/+6
|
* p2p/discover: new endpoint formatFelix Lange2015-04-301-7/+2
| | | | | | 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: fix goroutine leak due to blocking on sync.OncePéter Szilágyi2015-04-281-1/+1
|
* p2p/discover: add node expirer and related testsPéter Szilágyi2015-04-271-0/+2
|
* p2p/discover: parametrize nodedb version, add persistency testsPéter Szilágyi2015-04-271-2/+2
|
* p2p/discover: wrap the pinger to update the node db tooPéter Szilágyi2015-04-271-4/+15
|
* p2p/discover: write the basic tests, catch RLP bugPéter Szilágyi2015-04-271-1/+1
|
* p2p/discovery: fix issues raised in the nodeDb PRPéter Szilágyi2015-04-271-3/+2
|
* cmd/bootnode, eth, p2p, p2p/discover: use a fancier db designPéter Szilágyi2015-04-241-11/+25
|
* cmd/bootnode, eth, p2p, p2p/discover: clean up the seeder and mesh into eth.Péter Szilágyi2015-04-241-13/+10
|
* p2p/discovery: use the seed table for finding nodes, auto drop stale onesPéter Szilágyi2015-04-241-2/+8
|
* cmd, eth, p2p, p2p/discover: init and clean up the seed cachePéter Szilágyi2015-04-241-3/+13
|
* p2p/discover: store nodes in leveldbFelix Lange2015-04-241-1/+2
|
* p2p/discover: remove unused field Node.activeStampFelix Lange2015-04-131-1/+0
|
* p2p/discover: fix off by one error causing buckets to contain duplicatesFelix Lange2015-04-011-1/+1
|
* p2p/discover: implement node bondingFelix Lange2015-04-011-50/+133
| | | | | | | | | | | | | | | | This a fix for an attack vector where the discovery protocol could be used to amplify traffic in a DDOS attack. A malicious actor would send a findnode request with the IP address and UDP port of the target as the source address. The recipient of the findnode packet would then send a neighbors packet (which is 16x the size of findnode) to the victim. Our solution is to require a 'bond' with the sender of findnode. If no bond exists, the findnode packet is not processed. A bond between nodes α and β is created when α replies to a ping from β. This (initial) version of the bonding implementation might still be vulnerable against replay attacks during the expiration time window. We will add stricter source address validation later.
* p2p: server>discover table Self=Node exportedzelig2015-03-151-3/+3
|
* p2p/discover: code review fixesFelix Lange2015-02-131-4/+4
|
* p2p/discover: deflake UDP testsFelix Lange2015-02-091-1/+2
|
* cmd/ethereum, cmd/mist: add flag for discovery bootstrap nodesFelix Lange2015-02-071-2/+2
|
* p2p/discover: add node URL functions, distinguish TCP/UDP portsFelix Lange2015-02-071-193/+4
| | | | | The discovery RPC protocol does not yet distinguish TCP and UDP ports. But it can't hurt to do so in our internal model.
* p2p/discover: add some helper functionsFelix Lange2015-02-061-8/+29
|
* p2p/discover: new package implementing the Node Discovery ProtocolFelix Lange2015-02-061-0/+447