From b2bc72e777f211c77c8c12984e30546dbb3f9c75 Mon Sep 17 00:00:00 2001 From: datluongductuan Date: Wed, 17 Jun 2026 14:05:17 +0700 Subject: [PATCH] refactor(mev): drop pre-submit simulation in BloxrouteBackrunmeSender.SendBackrunBundle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SendBackrunBundle no longer calls MevSimulateBundle before submitting the arb-only bundle — the pre-submit simulate_arb_only_bundle round-trip is unnecessary and adds latency to the send path. MevSimulateBundle remains on the type for callers that want to simulate explicitly. submit_arb_only_bundle (with coinbase_profit) is sent directly. Co-Authored-By: Claude Opus 4.8 --- pkg/mev/bloxroute_backrunme_sender.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkg/mev/bloxroute_backrunme_sender.go b/pkg/mev/bloxroute_backrunme_sender.go index 7f50923..67dba2c 100644 --- a/pkg/mev/bloxroute_backrunme_sender.go +++ b/pkg/mev/bloxroute_backrunme_sender.go @@ -157,13 +157,6 @@ func (s *BloxrouteBackrunmeSender) SendBackrunBundle( transactions = append(transactions, hexTx) } - // First, simulate the bundle using MevSimulateBundle - _, err := s.MevSimulateBundle(ctx, blockNumber, pendingTxHashes[0], txs[0]) - if err != nil { - return SendBundleResponse{}, fmt.Errorf("simulate bundle failed: %w", err) - } - - // If simulation passed, proceed with submission // Build request params params := backrunmeRequestParams{ TransactionHash: pendingTxHashes[0].Hex(),