Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
AshwinSekar committed Jul 16, 2024
1 parent e742439 commit c826fc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
21 changes: 5 additions & 16 deletions core/src/replay_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8767,16 +8767,10 @@ pub(crate) mod tests {
let bank_forks = BankForks::new_rw_arc(Bank::new_for_tests(&genesis_config));
let bank0 = bank_forks.read().unwrap().get_with_scheduler(0).unwrap();
let recyclers = VerifyRecyclers::default();
let replay_tx_thread_pool = rayon::ThreadPoolBuilder::new()
.num_threads(1)
.thread_name(|i| format!("solReplayTx{i:02}"))
.build()
.expect("new rayon threadpool");

process_bank_0(
&bank0,
&blockstore,
&replay_tx_thread_pool,
&ProcessOptions::default(),
&recyclers,
None,
Expand All @@ -8797,7 +8791,6 @@ pub(crate) mod tests {
confirm_full_slot(
&blockstore,
&bank1,
&replay_tx_thread_pool,
&ProcessOptions::default(),
&recyclers,
&mut ConfirmationProgress::new(bank0.last_blockhash()),
Expand All @@ -8808,15 +8801,11 @@ pub(crate) mod tests {
)
.unwrap();

bank_forks
.write()
.unwrap()
.set_root(
1,
&solana_runtime::accounts_background_service::AbsRequestSender::default(),
None,
)
.unwrap();
bank_forks.write().unwrap().set_root(
1,
&solana_runtime::accounts_background_service::AbsRequestSender::default(),
None,
);

let leader_schedule_cache = LeaderScheduleCache::new_from_bank(&bank1);

Expand Down
4 changes: 0 additions & 4 deletions ledger/src/blockstore_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -976,11 +976,7 @@ fn verify_ticks(
Ok(())
}

<<<<<<< HEAD
=======
#[allow(clippy::too_many_arguments)]
#[cfg_attr(feature = "dev-context-only-utils", qualifiers(pub))]
>>>>>>> 2a48564b59 (blockstore: only consume duplicate proofs from root_slot + 1 on startup (#1971))
fn confirm_full_slot(
blockstore: &Blockstore,
bank: &BankWithScheduler,
Expand Down

0 comments on commit c826fc9

Please sign in to comment.