mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
cmd, eth: apply default miner recommit setting
This commit is contained in:
parent
b2c644ffb5
commit
57b0e98b08
2 changed files with 2 additions and 1 deletions
|
|
@ -363,7 +363,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{
|
||||||
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{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue