[][src]Enum casper_node::types::BlockValidationError

pub enum BlockValidationError {
    SerializationError(Error),
    UnexpectedBodyHash {
        expected_by_block_header: Digest,
        actual: Digest,
    },
    UnexpectedBlockHash {
        expected_by_block: BlockHash,
        actual: BlockHash,
    },
}

An error that can arise when validating a block's cryptographic integrity using its hashes

Variants

SerializationError(Error)

Problem serializing some of a block's data into bytes

UnexpectedBodyHash

The body hash in the header is not the same as the hash of the body of the block

Fields of UnexpectedBodyHash

expected_by_block_header: Digest

The block body hash specified in the header that is apparently incorrect

actual: Digest

The actual hash of the block's body

UnexpectedBlockHash

The block's hash is not the same as the header's hash

Fields of UnexpectedBlockHash

expected_by_block: BlockHash

The hash specified by the block

actual: BlockHash

The actual hash of the block

Trait Implementations

impl Debug for BlockValidationError[src]

impl Display for BlockValidationError[src]

impl From<Error> for BlockValidationError[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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]