From 67c3bff092f88ae20917258cb3aca1e92fa861ea Mon Sep 17 00:00:00 2001 From: Brennan Date: Mon, 18 Mar 2024 19:37:32 -0700 Subject: [PATCH] fix polarity for concurrent replay (#297) * fix polarity for concurrent replay --- core/src/replay_stage.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/replay_stage.rs b/core/src/replay_stage.rs index 90be2dade6a191..8a29d037dedf3c 100644 --- a/core/src/replay_stage.rs +++ b/core/src/replay_stage.rs @@ -655,14 +655,14 @@ impl ReplayStage { }; // Thread pool to (maybe) replay multiple threads in parallel let replay_mode = if replay_slots_concurrently { - ForkReplayMode::Serial - } else { let pool = rayon::ThreadPoolBuilder::new() .num_threads(MAX_CONCURRENT_FORKS_TO_REPLAY) .thread_name(|i| format!("solReplayFork{i:02}")) .build() .expect("new rayon threadpool"); ForkReplayMode::Parallel(pool) + } else { + ForkReplayMode::Serial }; // Thread pool to replay multiple transactions within one block in parallel let replay_tx_thread_pool = rayon::ThreadPoolBuilder::new()