From fee7528abd51d9f382e7ba852f43a9d5805a0b24 Mon Sep 17 00:00:00 2001 From: ZanCorDX <126988525+ZanCorDX@users.noreply.github.com> Date: Fri, 6 Dec 2024 13:09:05 -0300 Subject: [PATCH] tvb pusher disabled on dryrun (#26) --- src/flashbots_config.rs | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/flashbots_config.rs b/src/flashbots_config.rs index bb430a0..72edff3 100644 --- a/src/flashbots_config.rs +++ b/src/flashbots_config.rs @@ -325,13 +325,17 @@ impl FlashbotsConfig { self.l1_config.max_concurrent_seals as usize, )); - // UnfinishedBlockBuildingSinkFactoryWrapper - let wrapped_sink_factory = self.wrap_with_tbv_pusher( - &cancellation_token, - &bid_value_source, - block_processor_key, - sink_factory, - )?; + // Avoid sending TBV is we are not going to bid. + let wrapped_sink_factory = if self.l1_config.dry_run { + sink_factory + } else { + self.wrap_with_tbv_pusher( + &cancellation_token, + &bid_value_source, + block_processor_key, + sink_factory, + )? + }; Ok((wrapped_sink_factory, relays, bidding_service_win_control)) }