plugeth/p2p
Felix Lange e83c3ccc47
p2p/enode: improve IPv6 support, add ENR text representation (#19663)
* p2p/enr: add entries for for IPv4/IPv6 separation

This adds entry types for "ip6", "udp6", "tcp6" keys. The IP type stays
around because removing it would break a lot of code and force everyone
to care about the distinction.

* p2p/enode: track IPv4 and IPv6 address separately

LocalNode predicts the local node's UDP endpoint and updates the record.
This change makes it predict IPv4 and IPv6 endpoints separately since
they can now be in the record at the same time.

* p2p/enode: implement base64 text format
* all: switch to enode.Parse(...)

This allows passing base64-encoded node records to all the places that
previously accepted enode:// URLs. The URL format is still supported.

* cmd/bootnode, p2p: log node URL instead of ENR

...and return the base64 record in NodeInfo.
2019-06-07 15:31:00 +02:00
..
discover p2p/enode: improve IPv6 support, add ENR text representation (#19663) 2019-06-07 15:31:00 +02:00
discv5 vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
enode p2p/enode: improve IPv6 support, add ENR text representation (#19663) 2019-06-07 15:31:00 +02:00
enr p2p/enode: improve IPv6 support, add ENR text representation (#19663) 2019-06-07 15:31:00 +02:00
nat p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
netutil p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
simulations swarm/network: Use different privatekey for bzz overlay in sim (#19313) 2019-03-22 21:37:25 +01:00
testing swarm/storage/localstore: fix export db.Put signature 2019-05-10 12:26:30 +02:00
dial_test.go p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
dial.go p2p: fix typo in dialstate comment (#19476) 2019-04-18 10:02:11 +03:00
message_test.go all: fix go vet warnings 2016-04-15 11:17:27 +02:00
message.go all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
metrics.go dashboard, p2p, vendor: visualize peers (#19247) 2019-03-13 14:53:52 +02:00
peer_error.go p2p: fix some golint warnings (#16577) 2018-05-08 13:08:43 +02:00
peer_test.go all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
peer.go p2p: add enode URL to PeerInfo (#17838) 2018-10-04 18:13:21 +03:00
protocol.go p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
rlpx_test.go p2p: remove useless parameter (#19433) 2019-04-10 11:49:02 +03:00
rlpx.go accounts, p2p, rpc: make CGO_ENABLED=0 build again (#19593) 2019-05-26 01:07:10 +03:00
server_test.go vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
server.go p2p/enode: improve IPv6 support, add ENR text representation (#19663) 2019-06-07 15:31:00 +02:00