Skip to content

Commit af85d8e

Browse files
rjl493456442karalabe
authored andcommitted
cmd, eth: apply default miner recommit setting (#17479)
1 parent 6a8b47c commit af85d8e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cmd/utils/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ var (
367367
MinerRecommitIntervalFlag = cli.DurationFlag{
368368
Name: "miner.recommit",
369369
Usage: "Time interval to recreate the block being mined.",
370-
Value: 3 * time.Second,
370+
Value: eth.DefaultConfig.MinerRecommit,
371371
}
372372
// Account settings
373373
UnlockedAccountFlag = cli.StringFlag{

eth/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ var DefaultConfig = Config{
4949
TrieCache: 256,
5050
TrieTimeout: 60 * time.Minute,
5151
MinerGasPrice: big.NewInt(18 * params.Shannon),
52+
MinerRecommit: 3 * time.Second,
5253

5354
TxPool: core.DefaultTxPoolConfig,
5455
GPO: gasprice.Config{

0 commit comments

Comments
 (0)