Enum sc_state_db::StateDbError
source · pub enum StateDbError {
Decoding(Error),
InvalidBlock,
InvalidBlockNumber,
InvalidParent,
IncompatiblePruningModes {
stored: PruningMode,
requested: PruningMode,
},
TooManySiblingBlocks {
number: u64,
},
BlockAlreadyExists,
Metadata(String),
BlockUnavailable,
BlockMissing,
}
Variants§
Decoding(Error)
Codec
decoding error.
InvalidBlock
Trying to canonicalize invalid block.
InvalidBlockNumber
Trying to insert block with invalid number.
InvalidParent
Trying to insert block with unknown parent.
IncompatiblePruningModes
Invalid pruning mode specified. Contains expected mode.
TooManySiblingBlocks
Too many unfinalized sibling blocks inserted.
BlockAlreadyExists
Trying to insert existing block.
Metadata(String)
Invalid metadata
Trying to get a block record from db while it is not commit to db yet
BlockMissing
Block record is missing from the pruning window
Trait Implementations§
source§impl Debug for StateDbError
impl Debug for StateDbError
source§impl<E> From<StateDbError> for Error<E>
impl<E> From<StateDbError> for Error<E>
source§fn from(inner: StateDbError) -> Self
fn from(inner: StateDbError) -> Self
Converts to this type from the input type.
source§impl PartialEq<StateDbError> for StateDbError
impl PartialEq<StateDbError> for StateDbError
source§fn eq(&self, other: &StateDbError) -> bool
fn eq(&self, other: &StateDbError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.