Skip to content

Commit 5584574

Browse files
authored
Merge pull request #18281 from karalabe/puppeth-faucet
cmd/faucet, cmd/puppeth: fix enode and compose regressions, expose UDP
2 parents bb72408 + 38c3d88 commit 5584574

File tree

7 files changed

+10
-3
lines changed

7 files changed

+10
-3
lines changed

cmd/faucet/faucet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ func newFaucet(genesis *core.Genesis, port int, enodes []*discv5.Node, network u
256256
}
257257
for _, boot := range enodes {
258258
old, err := enode.ParseV4(boot.String())
259-
if err != nil {
259+
if err == nil {
260260
stack.Server().AddPeer(old)
261261
}
262262
}

cmd/puppeth/module_ethstats.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ version: '2'
4343
services:
4444
ethstats:
4545
build: .
46-
image: {{.Network}}/ethstats{{if not .VHost}}
46+
image: {{.Network}}/ethstats
47+
container_name: {{.Network}}_ethstats_1{{if not .VHost}}
4748
ports:
4849
- "{{.Port}}:3000"{{end}}
4950
environment:

cmd/puppeth/module_explorer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ services:
7777
explorer:
7878
build: .
7979
image: {{.Network}}/explorer
80+
container_name: {{.Network}}_explorer_1
8081
ports:
8182
- "{{.NodePort}}:{{.NodePort}}"
8283
- "{{.NodePort}}:{{.NodePort}}/udp"{{if not .VHost}}

cmd/puppeth/module_faucet.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ services:
5656
faucet:
5757
build: .
5858
image: {{.Network}}/faucet
59+
container_name: {{.Network}}_faucet_1
5960
ports:
60-
- "{{.EthPort}}:{{.EthPort}}"{{if not .VHost}}
61+
- "{{.EthPort}}:{{.EthPort}}"
62+
- "{{.EthPort}}:{{.EthPort}}/udp"{{if not .VHost}}
6163
- "{{.ApiPort}}:8080"{{end}}
6264
volumes:
6365
- {{.Datadir}}:/root/.faucet

cmd/puppeth/module_nginx.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ services:
4040
nginx:
4141
build: .
4242
image: {{.Network}}/nginx
43+
container_name: {{.Network}}_nginx_1
4344
ports:
4445
- "{{.Port}}:80"
4546
volumes:

cmd/puppeth/module_node.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ services:
5555
{{.Type}}:
5656
build: .
5757
image: {{.Network}}/{{.Type}}
58+
container_name: {{.Network}}_{{.Type}}_1
5859
ports:
5960
- "{{.Port}}:{{.Port}}"
6061
- "{{.Port}}:{{.Port}}/udp"

cmd/puppeth/module_wallet.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ services:
5757
wallet:
5858
build: .
5959
image: {{.Network}}/wallet
60+
container_name: {{.Network}}_wallet_1
6061
ports:
6162
- "{{.NodePort}}:{{.NodePort}}"
6263
- "{{.NodePort}}:{{.NodePort}}/udp"

0 commit comments

Comments
 (0)