Enum ckb_verification::EpochError
source · [−]pub enum EpochError {
Malformed {
value: EpochNumberWithFraction,
},
NonContinuous {
current: EpochNumberWithFraction,
parent: EpochNumberWithFraction,
},
TargetMismatch {
expected: u32,
actual: u32,
},
NumberMismatch {
expected: u64,
actual: u64,
},
}
Expand description
Errors due to the fact that the block epoch is not expected.
Variants
Malformed
Fields
value: EpochNumberWithFraction
The malformed header epoch.
The format of header epoch is malformed.
NonContinuous
Fields
current: EpochNumberWithFraction
The current header epoch.
parent: EpochNumberWithFraction
The parent header epoch.
The header epoch is not continuous.
TargetMismatch
Fields
expected: u32
The expected compact-target of block epoch.
actual: u32
The actual compact-target of block epoch.
The compact-target of block epoch is unexpected.
NumberMismatch
The number of block epoch is unexpected.
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 EpochError
impl Send for EpochError
impl Sync for EpochError
impl Unpin for EpochError
impl UnwindSafe for EpochError
Blanket Implementations
Mutably borrows from an owned value. Read more