Remove generic

This commit is contained in:
Carl
2020-03-15 21:28:47 -07:00
committed by Michael Vines
parent 7029c88305
commit 009c124fac
2 changed files with 7 additions and 13 deletions

View File

@ -260,15 +260,6 @@ pub enum BlockstoreProcessorError {
InvalidHardFork(Slot),
}
impl BlockstoreProcessorError {
pub fn is_severity_error(&self) -> bool {
!matches!(
self,
BlockstoreProcessorError::InvalidBlock(BlockError::InvalidTickCount)
)
}
}
/// Callback for accessing bank state while processing the blockstore
pub type ProcessCallback = Arc<dyn Fn(&Bank) -> () + Sync + Send>;