aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_node.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-08-29 18:49:59 +0800
committerGitHub <noreply@github.com>2018-08-29 18:49:59 +0800
commite29c2e43640445e743bb69ab48d6c862d3e964d9 (patch)
tree62f4d24ddfcb9fba0573531995739bcfdbf8b143 /cmd/puppeth/wizard_node.go
parentc1c003e4ff36c22d67662ca661fc78cde850d401 (diff)
parente8f229b82ef99213f8f84b8a71f752b236024494 (diff)
downloaddexon-e29c2e43640445e743bb69ab48d6c862d3e964d9.tar
dexon-e29c2e43640445e743bb69ab48d6c862d3e964d9.tar.gz
dexon-e29c2e43640445e743bb69ab48d6c862d3e964d9.tar.bz2
dexon-e29c2e43640445e743bb69ab48d6c862d3e964d9.tar.lz
dexon-e29c2e43640445e743bb69ab48d6c862d3e964d9.tar.xz
dexon-e29c2e43640445e743bb69ab48d6c862d3e964d9.tar.zst
dexon-e29c2e43640445e743bb69ab48d6c862d3e964d9.zip
Merge pull request #17546 from karalabe/miner-max-limit
cmd, core, eth, miner, params: configurable gas floor and ceil
Diffstat (limited to 'cmd/puppeth/wizard_node.go')
-rw-r--r--cmd/puppeth/wizard_node.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/puppeth/wizard_node.go b/cmd/puppeth/wizard_node.go
index 9b22da446..49b10a023 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{port: 30303, peersTotal: 512, peersLight: 256}
} else {
- infos = &nodeInfos{port: 30303, peersTotal: 50, peersLight: 0, gasTarget: 4.7, gasPrice: 18}
+ infos = &nodeInfos{port: 30303, peersTotal: 50, peersLight: 0, gasTarget: 7.5, gasLimit: 10, gasPrice: 1}
}
}
existed := err == nil
@@ -153,6 +153,10 @@ func (w *wizard) deployNode(boot bool) {
infos.gasTarget = w.readDefaultFloat(infos.gasTarget)
fmt.Println()
+ fmt.Printf("What gas limit should full blocks target (MGas)? (default = %0.3f)\n", infos.gasLimit)
+ infos.gasLimit = w.readDefaultFloat(infos.gasLimit)
+
+ fmt.Println()
fmt.Printf("What gas price should the signer require (GWei)? (default = %0.3f)\n", infos.gasPrice)
infos.gasPrice = w.readDefaultFloat(infos.gasPrice)
}