[][src]Enum ckb_verification::BlockErrorKind

pub enum BlockErrorKind {
    ProposalTransactionDuplicate,
    CommitTransactionDuplicate,
    ProposalTransactionsHash,
    TransactionsRoot,
    InvalidDAO,
    BlockTransactions,
    UnknownParent,
    Uncles,
    Cellbase,
    Commit,
    ExceededMaximumProposalsLimit,
    ExceededMaximumCycles,
    ExceededMaximumBlockBytes,
}

Variants

ProposalTransactionDuplicate
CommitTransactionDuplicate

There are duplicate committed transactions.

ProposalTransactionsHash

The merkle tree hash of proposed transactions does not match the one in header.

TransactionsRoot

The merkle tree hash of committed transactions does not match the one in header.

InvalidDAO

Invalid data in DAO header field is invalid

BlockTransactions

Committed transactions verification error. It contains error for the first transaction that fails the verification. The errors are stored as a tuple, where the first item is the transaction index in the block and the second item is the transaction verification error.

UnknownParent
Uncles
Cellbase
Commit

This error is returned when the committed transactions does not meet the 2-phases propose-then-commit consensus rule.

ExceededMaximumProposalsLimit
ExceededMaximumCycles
ExceededMaximumBlockBytes

Trait Implementations

impl Clone for BlockErrorKind[src]

impl Debug for BlockErrorKind[src]

impl Display for BlockErrorKind[src]

impl Eq for BlockErrorKind[src]

impl From<BlockErrorKind> for BlockError[src]

impl From<BlockErrorKind> for Error[src]

impl PartialEq<BlockErrorKind> for BlockErrorKind[src]

impl StructuralEq for BlockErrorKind[src]

impl StructuralPartialEq for BlockErrorKind[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsAny for T where
    T: Any
[src]

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

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