diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-08-29 18:49:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-29 18:49:59 +0800 |
commit | e29c2e43640445e743bb69ab48d6c862d3e964d9 (patch) | |
tree | 62f4d24ddfcb9fba0573531995739bcfdbf8b143 /cmd/puppeth/wizard_node.go | |
parent | c1c003e4ff36c22d67662ca661fc78cde850d401 (diff) | |
parent | e8f229b82ef99213f8f84b8a71f752b236024494 (diff) | |
download | dexon-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.go | 6 |
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) } |