Enum ethcore::snapshot::Error [−][src]
pub enum Error {
InvalidStartingBlock(BlockId),
BlockNotFound(H256),
IncompleteChain,
WrongStateRoot(H256, H256),
WrongBlockHash(u64, H256, H256),
TooManyBlocks(u64, u64),
OldBlockPrunedDB,
MissingCode(Vec<H256>),
UnrecognizedCodeState(u8),
RestorationAborted,
Trie(TrieError),
Decoder(DecoderError),
Io(Error),
VersionNotSupported(u64),
ChunkTooSmall,
ChunkTooLarge,
SnapshotsUnsupported,
BadEpochProof(u64),
WrongChunkFormat(String),
}Snapshot-related errors.
Variants
InvalidStartingBlock(BlockId)Invalid starting block for snapshot.
BlockNotFound(H256)Block not found.
IncompleteChainIncomplete chain.
WrongStateRoot(H256, H256)Best block has wrong state root.
WrongBlockHash(u64, H256, H256)Wrong block hash.
TooManyBlocks(u64, u64)Too many blocks contained within the snapshot.
OldBlockPrunedDBOld starting block in a pruned database.
MissingCode(Vec<H256>)Missing code.
UnrecognizedCodeState(u8)Unrecognized code encoding.
RestorationAbortedRestoration aborted.
Trie(TrieError)Trie error.
Decoder(DecoderError)Decoder error.
Io(Error)Io error.
VersionNotSupported(u64)Snapshot version is not supported.
ChunkTooSmallMax chunk size is to small to fit basic account data.
ChunkTooLargeOversized chunk
SnapshotsUnsupportedSnapshots not supported by the consensus engine.
BadEpochProof(u64)Bad epoch transition.
WrongChunkFormat(String)Wrong chunk format.
Trait Implementations
impl From<SnapshotError> for Error[src]
impl From<SnapshotError> for Errorfn from(err: SnapshotError) -> Error[src]
fn from(err: SnapshotError) -> ErrorPerforms the conversion.
impl Debug for Error[src]
impl Debug for Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for Error[src]
impl Display for Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<Error> for Error[src]
impl From<Error> for Errorimpl From<TrieError> for Error[src]
impl From<TrieError> for Errorimpl From<DecoderError> for Error[src]
impl From<DecoderError> for Errorfn from(err: DecoderError) -> Self[src]
fn from(err: DecoderError) -> SelfPerforms the conversion.
impl<E> From<Box<E>> for Error where
Error: From<E>, [src]
impl<E> From<Box<E>> for Error where
Error: From<E>,