[][src]Enum snarkos_errors::consensus::consensus::ConsensusError

pub enum ConsensusError {
    AlreadySpent(Vec<u8>, u32),
    BlockError(BlockError),
    BlockTooLarge(usizeusize),
    CoinbaseTransactionAlreadyExists(),
    ConflictingNetworkId(u8u8),
    Crate(&'static strString),
    CRHError(CRHError),
    DifficultyMismatch(u64u64),
    DPCError(DPCError),
    FuturisticTimestamp(i64i64),
    InvalidBlock(Vec<u8>),
    InvalidCoinbaseTransaction,
    MerkleRoot(String),
    Message(String),
    MultipleCoinbaseTransactions(u32),
    NonceInvalid(u32u32),
    NonceLimitError,
    NoGenesisBlock,
    NoParent(StringString),
    PedersenMerkleRoot(String),
    PowInvalid(u64u64),
    PoswError(PoswError),
    StorageError(StorageError),
    TimestampInvalid(i64i64),
    TransactionError(TransactionError),
    TransactionOverspending,
}

Possible block verification errors

Variants

AlreadySpent(Vec<u8>, u32)
BlockError(BlockError)
BlockTooLarge(usizeusize)
CoinbaseTransactionAlreadyExists()
ConflictingNetworkId(u8u8)
Crate(&'static strString)
CRHError(CRHError)
DifficultyMismatch(u64u64)
DPCError(DPCError)
FuturisticTimestamp(i64i64)
InvalidBlock(Vec<u8>)
InvalidCoinbaseTransaction
MerkleRoot(String)
Message(String)
MultipleCoinbaseTransactions(u32)
NonceInvalid(u32u32)
NonceLimitError
NoGenesisBlock
NoParent(StringString)
PedersenMerkleRoot(String)
PowInvalid(u64u64)
PoswError(PoswError)
StorageError(StorageError)
TimestampInvalid(i64i64)
TransactionError(TransactionError)
TransactionOverspending

Trait Implementations

impl Debug for ConsensusError[src]

impl Display for ConsensusError[src]

impl Error for ConsensusError[src]

impl From<BlockError> for ConsensusError[src]

impl From<Box<ErrorKind>> for ConsensusError[src]

impl From<CRHError> for ConsensusError[src]

impl From<ConsensusError> for SendError[src]

impl From<ConsensusError> for NodeError[src]

impl From<ConsensusError> for RpcError[src]

impl From<DPCError> for ConsensusError[src]

impl From<Error> for ConsensusError[src]

impl From<PoswError> for ConsensusError[src]

impl From<StorageError> for ConsensusError[src]

impl From<TransactionError> for ConsensusError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.