Commit af85d8e2 authored by gary rong's avatar gary rong Committed by Péter Szilágyi

cmd, eth: apply default miner recommit setting (#17479)

parent 6a8b47c8
...@@ -367,7 +367,7 @@ var ( ...@@ -367,7 +367,7 @@ var (
MinerRecommitIntervalFlag = cli.DurationFlag{ MinerRecommitIntervalFlag = cli.DurationFlag{
Name: "miner.recommit", Name: "miner.recommit",
Usage: "Time interval to recreate the block being mined.", Usage: "Time interval to recreate the block being mined.",
Value: 3 * time.Second, Value: eth.DefaultConfig.MinerRecommit,
} }
// Account settings // Account settings
UnlockedAccountFlag = cli.StringFlag{ UnlockedAccountFlag = cli.StringFlag{
......
...@@ -49,6 +49,7 @@ var DefaultConfig = Config{ ...@@ -49,6 +49,7 @@ var DefaultConfig = Config{
TrieCache: 256, TrieCache: 256,
TrieTimeout: 60 * time.Minute, TrieTimeout: 60 * time.Minute,
MinerGasPrice: big.NewInt(18 * params.Shannon), MinerGasPrice: big.NewInt(18 * params.Shannon),
MinerRecommit: 3 * time.Second,
TxPool: core.DefaultTxPoolConfig, TxPool: core.DefaultTxPoolConfig,
GPO: gasprice.Config{ GPO: gasprice.Config{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment