Skip to content

Commit

Permalink
reduce recommit interval
Browse files Browse the repository at this point in the history
  • Loading branch information
roshanrags committed Jun 30, 2023
1 parent c4220d2 commit 1228046
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion eth/ethconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ var Defaults = Config{
Miner: miner.Config{
GasCeil: 8000000,
GasPrice: big.NewInt(params.GWei),
Recommit: 125 * time.Second,
Recommit: 700 * time.Millisecond,
},
TxPool: core.DefaultTxPoolConfig,
RPCGasCap: 50000000,
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ func DefaultConfig() *Config {
GasCeil: 30_000_000, // geth's default
GasPrice: big.NewInt(1 * params.GWei), // geth's default
ExtraData: "",
Recommit: 125 * time.Second,
Recommit: 700 * time.Millisecond,
CommitInterruptFlag: true,
MaxMergedBundles: 3,
},
Expand Down
4 changes: 2 additions & 2 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ const (

// minRecommitInterval is the minimal time interval to recreate the sealing block with
// any newly arrived transactions.
minRecommitInterval = 1 * time.Second
minRecommitInterval = 700 * time.Millisecond

// maxRecommitInterval is the maximum time interval to recreate the sealing block with
// any newly arrived transactions.
maxRecommitInterval = 15 * time.Second
maxRecommitInterval = 700 * time.Millisecond

// intervalAdjustRatio is the impact a single interval adjustment has on sealing work
// resubmitting interval.
Expand Down

0 comments on commit 1228046

Please sign in to comment.