op-geth/p2p/discv5
Felix Lange 6f607de5d5
p2p, p2p/discover: add signed ENR generation (#17753)
This PR adds enode.LocalNode and integrates it into the p2p
subsystem. This new object is the keeper of the local node
record. For now, a new version of the record is produced every
time the client restarts. We'll make it smarter to avoid that in
the future.

There are a couple of other changes in this commit: discovery now
waits for all of its goroutines at shutdown and the p2p server
now closes the node database after discovery has shut down. This
fixes a leveldb crash in tests. p2p server startup is faster
because it doesn't need to wait for the external IP query
anymore.
2018-10-12 11:47:24 +02:00
..
database.go core, p2p/discv5: use time.NewTicker instead of time.Tick (#15747) 2018-01-02 12:50:46 +01:00
database_test.go all: fix various comment typos (#17748) 2018-09-25 12:26:35 +02:00
metrics.go p2p/discv5: add egress/ingress traffic metrics to discv5 udp transport (#16369) 2018-05-29 13:46:09 +02:00
net.go p2p/discv5: make idx bounds checking more sound (#17571) 2018-09-03 16:47:20 +02:00
net_test.go p2p, swarm, trie: avoid copying slices in loops (#17265) 2018-08-07 13:56:40 +03:00
node.go p2p: fix some golint warnings (#16577) 2018-05-08 13:08:43 +02:00
node_test.go p2p/discv5: added new topic discovery package 2016-11-09 02:12:53 +01:00
nodeevent_string.go build: enable goimports and varcheck linters (#16446) 2018-04-18 00:53:50 +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.go all: simplify s[:] to s where s is a slice (#17673) 2018-09-14 22:07:13 +02:00
table_test.go all: update license information 2016-11-09 02:51:34 +01:00
ticket.go p2p: fix some golint warnings (#16577) 2018-05-08 13:08:43 +02:00
topic.go p2p: fix some golint warnings (#16577) 2018-05-08 13:08:43 +02:00
topic_test.go all: update license information 2016-11-09 02:51:34 +01:00
udp.go p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
udp_test.go build: enable goimports and varcheck linters (#16446) 2018-04-18 00:53:50 +02:00