cmd/faucet, cmd/puppeth: fix enode and compose regressions, expose UDP
@@ -256,7 +256,7 @@ func newFaucet(genesis *core.Genesis, port int, enodes []*discv5.Node, network u
}
for _, boot := range enodes {
old, err := enode.ParseV4(boot.String())
- if err != nil {
+ if err == nil {
stack.Server().AddPeer(old)
@@ -43,7 +43,8 @@ version: '2'
services:
ethstats:
build: .
- image: {{.Network}}/ethstats{{if not .VHost}}
+ image: {{.Network}}/ethstats
+ container_name: {{.Network}}_ethstats_1{{if not .VHost}}
ports:
- "{{.Port}}:3000"{{end}}
environment:
@@ -77,6 +77,7 @@ services:
explorer:
image: {{.Network}}/explorer
+ container_name: {{.Network}}_explorer_1
- "{{.NodePort}}:{{.NodePort}}"
- "{{.NodePort}}:{{.NodePort}}/udp"{{if not .VHost}}
@@ -56,8 +56,10 @@ services:
faucet:
image: {{.Network}}/faucet
+ container_name: {{.Network}}_faucet_1
- - "{{.EthPort}}:{{.EthPort}}"{{if not .VHost}}
+ - "{{.EthPort}}:{{.EthPort}}"
+ - "{{.EthPort}}:{{.EthPort}}/udp"{{if not .VHost}}
- "{{.ApiPort}}:8080"{{end}}
volumes:
- {{.Datadir}}:/root/.faucet
@@ -40,6 +40,7 @@ services:
nginx:
image: {{.Network}}/nginx
+ container_name: {{.Network}}_nginx_1
- "{{.Port}}:80"
@@ -55,6 +55,7 @@ services:
{{.Type}}:
image: {{.Network}}/{{.Type}}
+ container_name: {{.Network}}_{{.Type}}_1
- "{{.Port}}:{{.Port}}"
- "{{.Port}}:{{.Port}}/udp"
@@ -57,6 +57,7 @@ services:
wallet:
image: {{.Network}}/wallet
+ container_name: {{.Network}}_wallet_1
- "{{.NodePort}}:{{.NodePort}}/udp"