Skip to content

Commit

Permalink
Adjust solana-core for cleaner scheduler-pr diff (solana-labs#33881)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun authored Oct 27, 2023
1 parent 510b6b9 commit 080285c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 1 addition & 3 deletions core/src/replay_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2786,7 +2786,6 @@ impl ReplayStage {
match replay_result {
Ok(replay_tx_count) => tx_count += replay_tx_count,
Err(err) => {
// Error means the slot needs to be marked as dead
Self::mark_dead_slot(
blockstore,
bank,
Expand All @@ -2802,8 +2801,7 @@ impl ReplayStage {
ancestor_hashes_replay_update_sender,
purge_repair_slot_counter,
);
// If the bank was corrupted, don't try to run the below logic to check if the
// bank is completed
// don't try to run the below logic to check if the bank is completed
continue;
}
}
Expand Down
11 changes: 6 additions & 5 deletions core/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,12 @@ impl Validator {
config.block_verification_method, config.block_production_method
);

let (replay_vote_sender, replay_vote_receiver) = unbounded();

// block min prioritization fee cache should be readable by RPC, and writable by validator
// (by both replay stage and banking stage)
let prioritization_fee_cache = Arc::new(PrioritizationFeeCache::default());

let leader_schedule_cache = Arc::new(leader_schedule_cache);
let entry_notification_sender = entry_notifier_service
.as_ref()
Expand Down Expand Up @@ -939,10 +945,6 @@ impl Validator {
)),
};

// block min prioritization fee cache should be readable by RPC, and writable by validator
// (by both replay stage and banking stage)
let prioritization_fee_cache = Arc::new(PrioritizationFeeCache::default());

let rpc_override_health_check =
Arc::new(AtomicBool::new(config.rpc_config.disable_health_check));
let (
Expand Down Expand Up @@ -1229,7 +1231,6 @@ impl Validator {
};
let last_vote = tower.last_vote();

let (replay_vote_sender, replay_vote_receiver) = unbounded();
let tvu = Tvu::new(
vote_account,
authorized_voter_keypairs,
Expand Down

0 comments on commit 080285c

Please sign in to comment.