diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-02-13 17:43:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-13 17:43:50 +0800 |
commit | da41a7258d94fb35113f3b2da3635c7c451e5831 (patch) | |
tree | c123e7994d514a6c58a74e5897a5e2ef27f6cd8f /cmd/puppeth/wizard_node.go | |
parent | 8d32c4b9906d2a97149c4312998d46e924d863d7 (diff) | |
parent | 12dab534958c5a91fdba470836a91de545681288 (diff) | |
download | dexon-da41a7258d94fb35113f3b2da3635c7c451e5831.tar dexon-da41a7258d94fb35113f3b2da3635c7c451e5831.tar.gz dexon-da41a7258d94fb35113f3b2da3635c7c451e5831.tar.bz2 dexon-da41a7258d94fb35113f3b2da3635c7c451e5831.tar.lz dexon-da41a7258d94fb35113f3b2da3635c7c451e5831.tar.xz dexon-da41a7258d94fb35113f3b2da3635c7c451e5831.tar.zst dexon-da41a7258d94fb35113f3b2da3635c7c451e5831.zip |
Merge pull request #16073 from karalabe/puppeth-unify-discovery
cmd/puppeth: unify discv4 and discv5 ports
Diffstat (limited to 'cmd/puppeth/wizard_node.go')
-rw-r--r-- | cmd/puppeth/wizard_node.go | 10 |
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) |