Skip to content

Commit

Permalink
tvb pusher disabled on dryrun (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanCorDX authored Dec 6, 2024
1 parent 750a884 commit fee7528
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/flashbots_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit fee7528

Please sign in to comment.