aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_faucet.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-02-12 22:27:53 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-02-12 22:27:53 +0800
commit12dab534958c5a91fdba470836a91de545681288 (patch)
tree8413f295b41465db8f4665c37177f349e70791e9 /cmd/puppeth/wizard_faucet.go
parent70fbc873791c3acae544f3b6514afeb5012dbdbe (diff)
downloadgo-tangerine-12dab534958c5a91fdba470836a91de545681288.tar
go-tangerine-12dab534958c5a91fdba470836a91de545681288.tar.gz
go-tangerine-12dab534958c5a91fdba470836a91de545681288.tar.bz2
go-tangerine-12dab534958c5a91fdba470836a91de545681288.tar.lz
go-tangerine-12dab534958c5a91fdba470836a91de545681288.tar.xz
go-tangerine-12dab534958c5a91fdba470836a91de545681288.tar.zst
go-tangerine-12dab534958c5a91fdba470836a91de545681288.zip
cmd/puppeth: unify discv4 and discv5 ports
Diffstat (limited to 'cmd/puppeth/wizard_faucet.go')
-rw-r--r--cmd/puppeth/wizard_faucet.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/puppeth/wizard_faucet.go b/cmd/puppeth/wizard_faucet.go
index 191575b16..9a429bc96 100644
--- a/cmd/puppeth/wizard_faucet.go
+++ b/cmd/puppeth/wizard_faucet.go
@@ -38,7 +38,7 @@ func (w *wizard) deployFaucet() {
infos, err := checkFaucet(client, w.network)
if err != nil {
infos = &faucetInfos{
- node: &nodeInfos{portFull: 30303, peersTotal: 25},
+ node: &nodeInfos{port: 30303, peersTotal: 25},
port: 80,
host: client.server,
amount: 1,
@@ -113,8 +113,8 @@ func (w *wizard) deployFaucet() {
}
// Figure out which port to listen on
fmt.Println()
- fmt.Printf("Which TCP/UDP port should the light client listen on? (default = %d)\n", infos.node.portFull)
- infos.node.portFull = w.readDefaultInt(infos.node.portFull)
+ fmt.Printf("Which TCP/UDP port should the light client listen on? (default = %d)\n", infos.node.port)
+ infos.node.port = w.readDefaultInt(infos.node.port)
// Set a proper name to report on the stats page
fmt.Println()
@@ -168,7 +168,7 @@ func (w *wizard) deployFaucet() {
fmt.Printf("Should the faucet be built from scratch (y/n)? (default = no)\n")
nocache = w.readDefaultString("n") != "n"
}
- if out, err := deployFaucet(client, w.network, w.conf.bootLight, infos, nocache); err != nil {
+ if out, err := deployFaucet(client, w.network, w.conf.bootnodes, infos, nocache); err != nil {
log.Error("Failed to deploy faucet container", "err", err)
if len(out) > 0 {
fmt.Printf("%s\n", out)