fix: add bid fee ceil

This commit is contained in:
irrun 2024-03-28 15:08:54 +08:00
parent e7c5ce2e94
commit 04a3b1f94f
2 changed files with 3 additions and 0 deletions

@ -182,4 +182,5 @@ type MevParams struct {
ValidatorCommission uint64 // 100 means 1% ValidatorCommission uint64 // 100 means 1%
BidSimulationLeftOver time.Duration BidSimulationLeftOver time.Duration
GasCeil uint64 GasCeil uint64
BidFeeCeil uint64
} }

@ -17,6 +17,7 @@ type BuilderConfig struct {
type MevConfig struct { type MevConfig struct {
Enabled bool // Whether to enable Mev or not Enabled bool // Whether to enable Mev or not
BidFeeCeil uint64 // The maximum builder fee of a bid
SentryURL string // The url of Mev sentry SentryURL string // The url of Mev sentry
Builders []BuilderConfig // The list of builders Builders []BuilderConfig // The list of builders
ValidatorCommission uint64 // 100 means 1% ValidatorCommission uint64 // 100 means 1%
@ -108,5 +109,6 @@ func (miner *Miner) MevParams() *types.MevParams {
ValidatorCommission: miner.worker.config.Mev.ValidatorCommission, ValidatorCommission: miner.worker.config.Mev.ValidatorCommission,
BidSimulationLeftOver: miner.worker.config.Mev.BidSimulationLeftOver, BidSimulationLeftOver: miner.worker.config.Mev.BidSimulationLeftOver,
GasCeil: miner.worker.config.GasCeil, GasCeil: miner.worker.config.GasCeil,
BidFeeCeil: miner.worker.config.Mev.BidFeeCeil,
} }
} }