Lower error level

This commit is contained in:
Carl
2020-03-15 19:57:29 -07:00
committed by Michael Vines
parent 5a93a4c466
commit 9411fc00b8
2 changed files with 22 additions and 5 deletions

View File

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