Skip to content
Merged
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
25 changes: 16 additions & 9 deletions miner/minerconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,25 @@ import (
"github.com/ethereum/go-ethereum/params"
)

// Default timing configurations
var (
defaultDelayLeftOver = 50 * time.Millisecond
defaultRecommit = 10 * time.Second
defaultMaxWaitProposalInSecs = uint64(45)
// default configurations for MEV
defaultMevEnabled = false
defaultGreedyMergeTx bool = true
defaultBuilderFeeCeil string = "0"
defaultValidatorCommission uint64 = 100
defaultBidSimulationLeftOver = 50 * time.Millisecond
defaultNoInterruptLeftOver = 250 * time.Millisecond
defaultMaxBidsPerBuilder uint32 = 2

defaultDelayLeftOver = 20 * 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
)

// Other default MEV-related configurations
var (
defaultMevEnabled = false
defaultGreedyMergeTx = true
defaultBuilderFeeCeil = "0"
defaultValidatorCommission = uint64(100)
defaultMaxBidsPerBuilder = uint32(2) // Simple strategy: send one bid early, another near deadline
)

// Config is the configuration parameters of mining.
Expand Down