Enum ckb_verification::UnclesError
source · [−]pub enum UnclesError {
OverCount {
max: u32,
actual: u32,
},
InvalidNumber,
InvalidTarget,
InvalidDifficultyEpoch,
ProposalsHash,
ProposalDuplicate,
Duplicate(Byte32),
DoubleInclusion(Byte32),
DescendantLimit,
ExceededMaximumProposalsLimit,
}
Expand description
Errors due to the fact that the uncle rule is not respected.
Variants
OverCount
The number of block uncles exceeds limit.
InvalidNumber
There is an uncle whose number is greater than or equal to current block number.
InvalidTarget
There is an uncle who belongs to a different epoch from the current block.
InvalidDifficultyEpoch
There is an uncle who belongs to a different epoch from the current block.
ProposalsHash
There is an uncle whose proposals-hash does not match with the calculated result.
ProposalDuplicate
There is an uncle whose proposals have duplicated items.
Duplicate(Byte32)
There are duplicated uncles in the current block.
DoubleInclusion(Byte32)
There is an uncle that has already been included before.
DescendantLimit
The depth of uncle descendant exceeds limit.
ExceededMaximumProposalsLimit
The number of uncle proposals exceeds limit.
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for UnclesError
impl Send for UnclesError
impl Sync for UnclesError
impl Unpin for UnclesError
impl UnwindSafe for UnclesError
Blanket Implementations
Mutably borrows from an owned value. Read more