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.
IncompleteChain
Incomplete 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.
OldBlockPrunedDB
Old starting block in a pruned database.
MissingCode(Vec<H256>)
Missing code.
UnrecognizedCodeState(u8)
Unrecognized code encoding.
RestorationAborted
Restoration aborted.
Trie(TrieError)
Trie error.
Decoder(DecoderError)
Decoder error.
Io(Error)
Io error.
VersionNotSupported(u64)
Snapshot version is not supported.
ChunkTooSmall
Max chunk size is to small to fit basic account data.
ChunkTooLarge
Oversized chunk
SnapshotsUnsupported
Snapshots 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 Error
fn from(err: SnapshotError) -> Error
[src]
fn from(err: SnapshotError) -> Error
Performs the conversion.
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<TrieError> for Error
[src]
impl From<TrieError> for Error
impl From<DecoderError> for Error
[src]
impl From<DecoderError> for Error
impl<E> From<Box<E>> for Error where
Error: From<E>,
[src]
impl<E> From<Box<E>> for Error where
Error: From<E>,