cmd, eth: apply default miner recommit setting (#17479)
This commit is contained in:
parent
6a8b47c880
commit
af85d8e2b3
|
@ -367,7 +367,7 @@ var (
|
|||
MinerRecommitIntervalFlag = cli.DurationFlag{
|
||||
Name: "miner.recommit",
|
||||
Usage: "Time interval to recreate the block being mined.",
|
||||
Value: 3 * time.Second,
|
||||
Value: eth.DefaultConfig.MinerRecommit,
|
||||
}
|
||||
// Account settings
|
||||
UnlockedAccountFlag = cli.StringFlag{
|
||||
|
|
|
@ -49,6 +49,7 @@ var DefaultConfig = Config{
|
|||
TrieCache: 256,
|
||||
TrieTimeout: 60 * time.Minute,
|
||||
MinerGasPrice: big.NewInt(18 * params.Shannon),
|
||||
MinerRecommit: 3 * time.Second,
|
||||
|
||||
TxPool: core.DefaultTxPoolConfig,
|
||||
GPO: gasprice.Config{
|
||||
|
|
Loading…
Reference in New Issue