feat: add bid fee ceil in mev_params

This commit is contained in:
irrun 2024-04-01 11:21:24 +08:00
parent 04a3b1f94f
commit 7c7a9bc53b

@ -27,7 +27,7 @@ func NewMevAPI(b Backend) *MevAPI {
// SendBid receives bid from the builders. // SendBid receives bid from the builders.
// If mev is not running or bid is invalid, return error. // If mev is not running or bid is invalid, return error.
// Otherwise, creates a builder bid for the given argument, submit it to the miner. // Otherwise, creates a builder bid for the given argument, submit it to the miner.
func (m *MevAPI) SendBid(ctx context.Context, args *types.BidArgs) (common.Hash, error) { func (m *MevAPI) SendBid(ctx context.Context, args types.BidArgs) (common.Hash, error) {
if !m.b.MevRunning() { if !m.b.MevRunning() {
return common.Hash{}, types.ErrMevNotRunning return common.Hash{}, types.ErrMevNotRunning
} }
@ -94,7 +94,7 @@ func (m *MevAPI) SendBid(ctx context.Context, args *types.BidArgs) (common.Hash,
} }
} }
return m.b.SendBid(ctx, args) return m.b.SendBid(ctx, &args)
} }
func (m *MevAPI) BestBidGasFee(_ context.Context, parentHash common.Hash) *big.Int { func (m *MevAPI) BestBidGasFee(_ context.Context, parentHash common.Hash) *big.Int {