plugeth/les
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
..
flowcontrol les: fix megacheck warnings (#14941) 2017-08-08 19:31:08 +03:00
api_backend.go les, light: LES/2 protocol version (#14970) 2017-10-24 15:19:09 +02:00
backend.go p2p, p2p/discover, p2p/discv5: implement UDP port sharing (#15200) 2018-01-22 13:38:34 +01:00
bloombits.go all: gofmt -w -s (#15419) 2017-11-08 11:45:52 +01:00
distributor_test.go all: gofmt -w -s (#15419) 2017-11-08 11:45:52 +01:00
distributor.go all: gofmt -w -s (#15419) 2017-11-08 11:45:52 +01:00
execqueue_test.go les: fix goroutine leak in execQueue (#14480) 2017-05-16 20:56:02 +02:00
execqueue.go les: fix goroutine leak in execQueue (#14480) 2017-05-16 20:56:02 +02:00
fetcher.go les: fix misuse of WaitGroup (#15365) 2017-11-09 10:34:35 +01:00
handler_test.go all: switch gas limits from big.Int to uint64 2018-01-03 14:45:35 +02:00
handler.go les: fix les/1 CHT compatibility issue (#15692) 2018-01-09 11:41:59 +01:00
helper_test.go all: switch gas limits from big.Int to uint64 2018-01-03 14:45:35 +02:00
metrics.go all: fix spelling errors 2017-01-06 19:44:35 +02:00
odr_requests.go les, light: LES/2 protocol version (#14970) 2017-10-24 15:19:09 +02:00
odr_test.go all: switch gas limits from big.Int to uint64 2018-01-03 14:45:35 +02:00
odr.go all: gofmt -w -s (#15419) 2017-11-08 11:45:52 +01:00
peer.go les: fix les/1 CHT compatibility issue (#15692) 2018-01-09 11:41:59 +01:00
protocol.go p2p, p2p/discover, p2p/discv5: implement UDP port sharing (#15200) 2018-01-22 13:38:34 +01:00
randselect_test.go all: gofmt -w -s 2017-01-06 15:52:03 +01:00
randselect.go les: implement light server pool 2016-12-08 13:38:15 +01:00
request_test.go les, light: LES/2 protocol version (#14970) 2017-10-24 15:19:09 +02:00
retrieve.go les, light: LES/2 protocol version (#14970) 2017-10-24 15:19:09 +02:00
server.go p2p, p2p/discover, p2p/discv5: implement UDP port sharing (#15200) 2018-01-22 13:38:34 +01:00
serverpool.go various: remove redundant parentheses (#15793) 2018-01-03 14:14:47 +02:00
sync.go all: import "context" instead of "golang.org/x/net/context" 2017-03-22 20:49:15 +01:00
txrelay.go les: code refactoring (#14416) 2017-06-21 12:27:38 +02:00