From ff100a7ee8b6c377c81f165266bd673bd7227244 Mon Sep 17 00:00:00 2001 From: buddh0 Date: Wed, 4 Jun 2025 15:48:23 +0800 Subject: [PATCH] miner: change default mev config --- miner/minerconfig/config.go | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/miner/minerconfig/config.go b/miner/minerconfig/config.go index 7c7aee8a88..0cd3c07410 100644 --- a/miner/minerconfig/config.go +++ b/miner/minerconfig/config.go @@ -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.