-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Adjust solana-core for cleaner scheduler-pr diff #33881
Adjust solana-core for cleaner scheduler-pr diff #33881
Conversation
@@ -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 |
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.
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
corrupted
is kind of ambiguous word. just remove it.
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()); | ||
|
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.
these two strictly-tx-execution related variables are hoisted here to be used SchedulerPool
creation, which must have been completed relatively early in this fn to be ready to use for ProcessBlockStore
just below.
Codecov Report
@@ Coverage Diff @@
## master #33881 +/- ##
=======================================
Coverage 81.8% 81.9%
=======================================
Files 809 809
Lines 217824 217824
=======================================
+ Hits 178387 178421 +34
+ Misses 39437 39403 -34 |
yet another small prep pr...
extracted from: #33070