|
|
@@ -5496,7 +5496,7 @@ pub(crate) mod tests {
|
|
|
&mut tower,
|
|
|
&mut progress,
|
|
|
&VoteTracker::default(),
|
|
|
- &ClusterSlots::default(),
|
|
|
+ &ClusterSlots::default_for_tests(),
|
|
|
&bank_forks,
|
|
|
&mut heaviest_subtree_fork_choice,
|
|
|
&mut latest_validator_votes_for_frozen_banks,
|
|
|
@@ -5547,7 +5547,7 @@ pub(crate) mod tests {
|
|
|
&mut tower,
|
|
|
&mut progress,
|
|
|
&VoteTracker::default(),
|
|
|
- &ClusterSlots::default(),
|
|
|
+ &ClusterSlots::default_for_tests(),
|
|
|
&bank_forks,
|
|
|
&mut heaviest_subtree_fork_choice,
|
|
|
&mut latest_validator_votes_for_frozen_banks,
|
|
|
@@ -5582,7 +5582,7 @@ pub(crate) mod tests {
|
|
|
&mut tower,
|
|
|
&mut progress,
|
|
|
&VoteTracker::default(),
|
|
|
- &ClusterSlots::default(),
|
|
|
+ &ClusterSlots::default_for_tests(),
|
|
|
&bank_forks,
|
|
|
&mut heaviest_subtree_fork_choice,
|
|
|
&mut latest_validator_votes_for_frozen_banks,
|
|
|
@@ -5621,7 +5621,7 @@ pub(crate) mod tests {
|
|
|
&mut tower,
|
|
|
&mut vote_simulator.progress,
|
|
|
&VoteTracker::default(),
|
|
|
- &ClusterSlots::default(),
|
|
|
+ &ClusterSlots::default_for_tests(),
|
|
|
&vote_simulator.bank_forks,
|
|
|
heaviest_subtree_fork_choice,
|
|
|
&mut latest_validator_votes_for_frozen_banks,
|
|
|
@@ -5689,7 +5689,7 @@ pub(crate) mod tests {
|
|
|
&mut tower,
|
|
|
&mut vote_simulator.progress,
|
|
|
&VoteTracker::default(),
|
|
|
- &ClusterSlots::default(),
|
|
|
+ &ClusterSlots::default_for_tests(),
|
|
|
&vote_simulator.bank_forks,
|
|
|
&mut vote_simulator.tbft_structs.heaviest_subtree_fork_choice,
|
|
|
&mut vote_simulator.latest_validator_votes_for_frozen_banks,
|
|
|
@@ -5980,7 +5980,7 @@ pub(crate) mod tests {
|
|
|
10,
|
|
|
&bank_forks_arc,
|
|
|
&vote_tracker,
|
|
|
- &ClusterSlots::default(),
|
|
|
+ &ClusterSlots::default_for_tests(),
|
|
|
);
|
|
|
|
|
|
let propagated_stats = &progress_map.get(&10).unwrap().propagated_stats;
|
|
|
@@ -6074,7 +6074,7 @@ pub(crate) mod tests {
|
|
|
10,
|
|
|
&bank_forks_arc,
|
|
|
&vote_tracker,
|
|
|
- &ClusterSlots::default(),
|
|
|
+ &ClusterSlots::default_for_tests(),
|
|
|
);
|
|
|
|
|
|
for i in 1..=10 {
|
|
|
@@ -6161,7 +6161,7 @@ pub(crate) mod tests {
|
|
|
10,
|
|
|
&bank_forks_arc,
|
|
|
&vote_tracker,
|
|
|
- &ClusterSlots::default(),
|
|
|
+ &ClusterSlots::default_for_tests(),
|
|
|
);
|
|
|
|
|
|
// Only the first 5 banks should have reached the threshold
|
|
|
@@ -6814,7 +6814,7 @@ pub(crate) mod tests {
|
|
|
&mut tower,
|
|
|
&mut progress,
|
|
|
&vote_tracker,
|
|
|
- &ClusterSlots::default(),
|
|
|
+ &ClusterSlots::default_for_tests(),
|
|
|
&bank_forks,
|
|
|
&mut HeaviestSubtreeForkChoice::new_from_bank_forks(bank_forks.clone()),
|
|
|
&mut LatestValidatorVotesForFrozenBanks::default(),
|
|
|
@@ -7429,7 +7429,7 @@ pub(crate) mod tests {
|
|
|
&mut tower,
|
|
|
&mut progress,
|
|
|
&VoteTracker::default(),
|
|
|
- &ClusterSlots::default(),
|
|
|
+ &ClusterSlots::default_for_tests(),
|
|
|
&bank_forks,
|
|
|
&mut tbft_structs.heaviest_subtree_fork_choice,
|
|
|
&mut latest_validator_votes_for_frozen_banks,
|
|
|
@@ -7553,7 +7553,7 @@ pub(crate) mod tests {
|
|
|
&mut tower,
|
|
|
&mut progress,
|
|
|
&VoteTracker::default(),
|
|
|
- &ClusterSlots::default(),
|
|
|
+ &ClusterSlots::default_for_tests(),
|
|
|
&bank_forks,
|
|
|
&mut tbft_structs.heaviest_subtree_fork_choice,
|
|
|
&mut latest_validator_votes_for_frozen_banks,
|
|
|
@@ -8337,7 +8337,7 @@ pub(crate) mod tests {
|
|
|
&mut tower,
|
|
|
&mut progress,
|
|
|
&VoteTracker::default(),
|
|
|
- &ClusterSlots::default(),
|
|
|
+ &ClusterSlots::default_for_tests(),
|
|
|
&bank_forks,
|
|
|
&mut tbft_structs.heaviest_subtree_fork_choice,
|
|
|
&mut latest_validator_votes_for_frozen_banks,
|
|
|
@@ -8861,7 +8861,7 @@ pub(crate) mod tests {
|
|
|
tower,
|
|
|
progress,
|
|
|
&VoteTracker::default(),
|
|
|
- &ClusterSlots::default(),
|
|
|
+ &ClusterSlots::default_for_tests(),
|
|
|
bank_forks,
|
|
|
heaviest_subtree_fork_choice,
|
|
|
latest_validator_votes_for_frozen_banks,
|