aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/faucet/faucet.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2019-06-07 21:31:00 +0800
committerGitHub <noreply@github.com>2019-06-07 21:31:00 +0800
commite83c3ccc47b2001b7871b60084d10c5f861c9c93 (patch)
tree54014c38b9cab361d2194304b19d2f51c11d7cda /cmd/faucet/faucet.go
parent896322bf88f40329b400d691cbdce9275739310e (diff)
downloadgo-tangerine-e83c3ccc47b2001b7871b60084d10c5f861c9c93.tar
go-tangerine-e83c3ccc47b2001b7871b60084d10c5f861c9c93.tar.gz
go-tangerine-e83c3ccc47b2001b7871b60084d10c5f861c9c93.tar.bz2
go-tangerine-e83c3ccc47b2001b7871b60084d10c5f861c9c93.tar.lz
go-tangerine-e83c3ccc47b2001b7871b60084d10c5f861c9c93.tar.xz
go-tangerine-e83c3ccc47b2001b7871b60084d10c5f861c9c93.tar.zst
go-tangerine-e83c3ccc47b2001b7871b60084d10c5f861c9c93.zip
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.
Diffstat (limited to 'cmd/faucet/faucet.go')
-rw-r--r--cmd/faucet/faucet.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/faucet/faucet.go b/cmd/faucet/faucet.go
index 08b23d46c..f8092084a 100644
--- a/cmd/faucet/faucet.go
+++ b/cmd/faucet/faucet.go
@@ -260,7 +260,7 @@ func newFaucet(genesis *core.Genesis, port int, enodes []*discv5.Node, network u
return nil, err
}
for _, boot := range enodes {
- old, err := enode.ParseV4(boot.String())
+ old, err := enode.Parse(enode.ValidSchemes, boot.String())
if err == nil {
stack.Server().AddPeer(old)
}