aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_node.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-05-13 08:03:56 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-05-13 08:03:56 +0800
commitef7b9fb7d0cbcc2e381074f6be82e4791c41bdeb (patch)
treeca48cba0b535c6edaf9b4bc04d12d6f09ac79130 /cmd/puppeth/wizard_node.go
parentb0d0fafd68f526ceed98e59a423b6470f2327a21 (diff)
downloadgo-tangerine-ef7b9fb7d0cbcc2e381074f6be82e4791c41bdeb.tar
go-tangerine-ef7b9fb7d0cbcc2e381074f6be82e4791c41bdeb.tar.gz
go-tangerine-ef7b9fb7d0cbcc2e381074f6be82e4791c41bdeb.tar.bz2
go-tangerine-ef7b9fb7d0cbcc2e381074f6be82e4791c41bdeb.tar.lz
go-tangerine-ef7b9fb7d0cbcc2e381074f6be82e4791c41bdeb.tar.xz
go-tangerine-ef7b9fb7d0cbcc2e381074f6be82e4791c41bdeb.tar.zst
go-tangerine-ef7b9fb7d0cbcc2e381074f6be82e4791c41bdeb.zip
cmd/puppeth: v4/v5 boot separation, signer gas configs (#14453)
Diffstat (limited to 'cmd/puppeth/wizard_node.go')
-rw-r--r--cmd/puppeth/wizard_node.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/cmd/puppeth/wizard_node.go b/cmd/puppeth/wizard_node.go
index d70d8f3c9..483d9fe05 100644
--- a/cmd/puppeth/wizard_node.go
+++ b/cmd/puppeth/wizard_node.go
@@ -50,7 +50,7 @@ func (w *wizard) deployNode(boot bool) {
if boot {
infos = &nodeInfos{portFull: 30303, peersTotal: 512, peersLight: 256}
} else {
- infos = &nodeInfos{portFull: 30303, peersTotal: 50, peersLight: 0}
+ infos = &nodeInfos{portFull: 30303, peersTotal: 50, peersLight: 0, gasTarget: 4.7, gasPrice: 18}
}
}
infos.genesis, _ = json.MarshalIndent(w.conf.genesis, "", " ")
@@ -136,9 +136,17 @@ func (w *wizard) deployNode(boot bool) {
}
}
}
+ // Establish the gas dynamics to be enforced by the signer
+ fmt.Println()
+ fmt.Printf("What gas limit should empty blocks target (MGas)? (default = %0.3f)\n", infos.gasTarget)
+ infos.gasTarget = w.readDefaultFloat(infos.gasTarget)
+
+ fmt.Println()
+ fmt.Printf("What gas price should the signer require (GWei)? (default = %0.3f)\n", infos.gasPrice)
+ infos.gasPrice = w.readDefaultFloat(infos.gasPrice)
}
// Try to deploy the full node on the host
- if out, err := deployNode(client, w.network, w.conf.bootFull, infos); err != nil {
+ if out, err := deployNode(client, w.network, w.conf.bootFull, w.conf.bootLight, infos); err != nil {
log.Error("Failed to deploy Ethereum node container", "err", err)
if len(out) > 0 {
fmt.Printf("%s\n", out)