aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_node.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_node.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_node.go')
-rw-r--r--cmd/puppeth/wizard_node.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/puppeth/wizard_node.go b/cmd/puppeth/wizard_node.go
index 097e2e41a..a60948bc6 100644
--- a/cmd/puppeth/wizard_node.go
+++ b/cmd/puppeth/wizard_node.go
@@ -48,9 +48,9 @@ func (w *wizard) deployNode(boot bool) {
infos, err := checkNode(client, w.network, boot)
if err != nil {
if boot {
- infos = &nodeInfos{portFull: 30303, peersTotal: 512, peersLight: 256}
+ infos = &nodeInfos{port: 30303, peersTotal: 512, peersLight: 256}
} else {
- infos = &nodeInfos{portFull: 30303, peersTotal: 50, peersLight: 0, gasTarget: 4.7, gasPrice: 18}
+ infos = &nodeInfos{port: 30303, peersTotal: 50, peersLight: 0, gasTarget: 4.7, gasPrice: 18}
}
}
existed := err == nil
@@ -79,8 +79,8 @@ func (w *wizard) deployNode(boot bool) {
}
// Figure out which port to listen on
fmt.Println()
- fmt.Printf("Which TCP/UDP port to listen on? (default = %d)\n", infos.portFull)
- infos.portFull = w.readDefaultInt(infos.portFull)
+ fmt.Printf("Which TCP/UDP port to listen on? (default = %d)\n", infos.port)
+ infos.port = w.readDefaultInt(infos.port)
// Figure out how many peers to allow (different based on node type)
fmt.Println()
@@ -163,7 +163,7 @@ func (w *wizard) deployNode(boot bool) {
fmt.Printf("Should the node be built from scratch (y/n)? (default = no)\n")
nocache = w.readDefaultString("n") != "n"
}
- if out, err := deployNode(client, w.network, w.conf.bootFull, w.conf.bootLight, infos, nocache); err != nil {
+ if out, err := deployNode(client, w.network, w.conf.bootnodes, infos, nocache); err != nil {
log.Error("Failed to deploy Ethereum node container", "err", err)
if len(out) > 0 {
fmt.Printf("%s\n", out)