Account for duplicate before a bank is frozen or replayed (#17866)

This commit is contained in:
carllin
2021-06-10 22:28:23 -07:00
committed by GitHub
parent 191519188d
commit afafa624a3
4 changed files with 150 additions and 23 deletions

View File

@@ -458,6 +458,7 @@ impl ProgressMap {
}
}
#[cfg(test)]
pub fn is_unconfirmed_duplicate(&self, slot: Slot) -> Option<bool> {
self.get(&slot).map(|p| {
p.duplicate_stats