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

This commit is contained in:
gary rong 2018-08-22 14:47:50 +08:00 committed by Péter Szilágyi
parent 6a8b47c880
commit af85d8e2b3
2 changed files with 2 additions and 1 deletions

View File

@ -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{

View File

@ -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{