Consolidate entry tick verification into one function (#7740)
* Consolidate entry tick verification into one function * Mark bad slots as dead in blocktree processor * more feedback * Add bank.is_complete * feedback
This commit is contained in:
@@ -2,6 +2,10 @@ use thiserror::Error;
|
||||
|
||||
#[derive(Error, Debug, PartialEq)]
|
||||
pub enum BlockError {
|
||||
/// Block did not have enough ticks or was not marked full
|
||||
#[error("incomplete block")]
|
||||
Incomplete,
|
||||
|
||||
/// Block entries hashes must all be valid
|
||||
#[error("invalid entry hash")]
|
||||
InvalidEntryHash,
|
||||
|
Reference in New Issue
Block a user