This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Adjust solana-core for cleaner scheduler-pr diff #33881
Merged
ryoqun
merged 1 commit into
solana-labs:master
from
ryoqun:solana-core-misc-adjustments
Oct 27, 2023
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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, | ||
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
continue; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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()); | ||
|
||
Comment on lines
+815
to
+820
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. these two strictly-tx-execution related variables are hoisted here to be used |
||
let leader_schedule_cache = Arc::new(leader_schedule_cache); | ||
let entry_notification_sender = entry_notifier_service | ||
.as_ref() | ||
|
@@ -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 ( | ||
|
@@ -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, | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kind of redundant comment.