Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions miner/minerconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ var (
defaultRecommit = 10 * time.Second
defaultMaxWaitProposalInSecs = uint64(45)

defaultDelayLeftOver = 20 * time.Millisecond
// Extra time for finalizing and committing blocks (excludes writing to disk).
defaultDelayLeftOver = 25 * time.Millisecond
defaultBidSimulationLeftOver = 30 * time.Millisecond
// Bid simulation speed on mainnet ranges from 400 to 700 mgasps.
// Here we assume 500 for estimation.
defaultNoInterruptLeftOver = 170 * time.Millisecond // For gas limit 75M
// For estimation, assume 500 Mgas/s:
// (100M gas / 500 Mgas/s) * 1000 ms + 10 ms buffer + defaultDelayLeftOver ≈ 235 ms.
defaultNoInterruptLeftOver = 235 * time.Millisecond
)

// Other default MEV-related configurations
Expand Down Expand Up @@ -66,7 +67,7 @@ type Config struct {

// DefaultConfig contains default settings for miner.
var DefaultConfig = Config{
GasCeil: 75000000,
GasCeil: 100000000,
GasPrice: big.NewInt(params.GWei),

// The default recommit time is chosen as two seconds since
Expand Down
2 changes: 1 addition & 1 deletion tests/truffle/config/config-validator.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ TrieTimeout = 6000000000
EnablePreimageRecording = false

[Eth.Miner]
GasCeil = 75000000
GasCeil = 100000000
GasPrice = 100000000

[Eth.GPO]
Expand Down