plugeth/p2p/discv5
Felföldi Zsolt 92580d69d3 p2p, p2p/discover, p2p/discv5: implement UDP port sharing (#15200)
This commit affects p2p/discv5 "topic discovery" by running it on
the same UDP port where the old discovery works. This is realized
by giving an "unhandled" packet channel to the old v4 discovery
packet handler where all invalid packets are sent. These packets
are then processed by v5. v5 packets are always invalid when
interpreted by v4 and vice versa. This is ensured by adding one
to the first byte of the packet hash in v5 packets.

DiscoveryV5Bootnodes is also changed to point to new bootnodes
that are implementing the changed packet format with modified
hash. Existing and new v5 bootnodes are both running on different
ports ATM.
2018-01-22 13:38:34 +01:00
..
database_test.go all: gofmt -w -s 2017-01-06 15:52:03 +01:00
database.go core, p2p/discv5: use time.NewTicker instead of time.Tick (#15747) 2018-01-02 12:50:46 +01:00
net_test.go p2p, p2p/discover, p2p/discv5: implement UDP port sharing (#15200) 2018-01-22 13:38:34 +01:00
net.go p2p, p2p/discover, p2p/discv5: implement UDP port sharing (#15200) 2018-01-22 13:38:34 +01:00
node_test.go p2p/discv5: added new topic discovery package 2016-11-09 02:12:53 +01:00
node.go p2p/discv5: fix reg lookup, polish code, use logger (#15737) 2017-12-28 14:17:03 +01:00
nodeevent_string.go all: update generated code (#15808) 2018-01-08 14:15:57 +02:00
ntp.go all: use gometalinter.v2, fix new gosimple issues (#15650) 2017-12-12 19:05:47 +01:00
sim_run_test.go p2p/discv5: added new topic discovery package 2016-11-09 02:12:53 +01:00
sim_test.go p2p, p2p/discover, p2p/discv5: implement UDP port sharing (#15200) 2018-01-22 13:38:34 +01:00
sim_testmain_test.go p2p/discv5: added new topic discovery package 2016-11-09 02:12:53 +01:00
table_test.go all: update license information 2016-11-09 02:51:34 +01:00
table.go p2p/discv5: fixed bootnode connect issues 2016-11-14 13:22:19 +01:00
ticket.go p2p, p2p/discover, p2p/discv5: implement UDP port sharing (#15200) 2018-01-22 13:38:34 +01:00
topic_test.go all: update license information 2016-11-09 02:51:34 +01:00
topic.go p2p/discv5: fix reg lookup, polish code, use logger (#15737) 2017-12-28 14:17:03 +01:00
udp_test.go all: fix spelling errors 2017-01-06 19:44:35 +02:00
udp.go p2p, p2p/discover, p2p/discv5: implement UDP port sharing (#15200) 2018-01-22 13:38:34 +01:00