Introduce slot dumping to ReplayStage (#18160)

This commit is contained in:
carllin
2021-07-08 19:07:32 -07:00
committed by GitHub
parent 27cc7577a1
commit 4d3e301ee4
13 changed files with 1322 additions and 520 deletions

View File

@@ -10,13 +10,13 @@ use std::{
sync::{Arc, RwLock},
};
pub(crate) struct SelectVoteAndResetForkResult {
pub struct SelectVoteAndResetForkResult {
pub vote_bank: Option<(Arc<Bank>, SwitchForkDecision)>,
pub reset_bank: Option<Arc<Bank>>,
pub heaviest_fork_failures: Vec<HeaviestForkFailures>,
}
pub(crate) trait ForkChoice {
pub trait ForkChoice {
type ForkChoiceKey;
fn compute_bank_stats(
&mut self,