go-pulse/node
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
..
api.go p2p/enode: improve IPv6 support, add ENR text representation (#19663) 2019-06-07 15:31:00 +02:00
config_test.go cmd, node, p2p/simulations: fix node account manager leak (#19004) 2019-02-07 12:40:36 +02:00
config.go p2p/enode: improve IPv6 support, add ENR text representation (#19663) 2019-06-07 15:31:00 +02:00
defaults.go cmd/utils, node: switch over default peer count to 50 2019-04-25 12:54:33 +03:00
doc.go node: documentation typo fix (#17113) 2018-07-03 11:42:18 +03:00
errors.go node: fix instance dir locking and improve error message 2017-08-18 12:14:00 +02:00
node_example_test.go cmd, node, p2p/simulations: fix node account manager leak (#19004) 2019-02-07 12:40:36 +02:00
node_test.go cmd, node, p2p/simulations: fix node account manager leak (#19004) 2019-02-07 12:40:36 +02:00
node.go cmd, core, eth, les, node: chain freezer on top of db rework 2019-05-16 10:39:29 +03:00
service_test.go all: clean up and proerly abstract database access 2019-03-06 13:35:03 +02:00
service.go cmd, core, eth, les, node: chain freezer on top of db rework 2019-05-16 10:39:29 +03:00
utils_test.go node: all golint warnings fixed (#16773) 2018-05-22 10:29:41 +03:00