Skip to content

Commit

Permalink
fix polarity for concurrent replay (solana-labs#297)
Browse files Browse the repository at this point in the history
* fix polarity for concurrent replay
  • Loading branch information
bw-solana authored Mar 19, 2024
1 parent ed573ff commit 67c3bff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/replay_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 67c3bff

Please sign in to comment.