pub enum BeaconChainBlockVerificationError {
ConsensusParametersDerivation {
error: DeriveConsensusParametersError,
},
SuperSegmentDerivation {
error: DeriveSuperSegmentForBlockError,
},
ShardSegmentsCheck {
error: CheckShardSegmentsError,
},
InvalidConsensusParameters {
expected: Box<OwnedBlockHeaderConsensusParameters>,
actual: Box<OwnedBlockHeaderConsensusParameters>,
},
MissingSuperSegmentInFirstBlock,
PreviousSuperSegmentHeaderNotFound,
SolutionSuperSegmentNotFound {
segment_index: SegmentIndex,
},
InvalidHistorySize {
history_size: HistorySize,
current_history_size: HistorySize,
},
InvalidSuperSegmentRoot {
expected: Box<Option<SuperSegmentRoot>>,
actual: Box<Option<SuperSegmentRoot>>,
},
InvalidPotCheckpoints,
InvalidProofOfTime,
SolutionError {
error: SolutionVerifyError,
},
}Expand description
Errors for BeaconChainBlockVerification
Variants§
ConsensusParametersDerivation
Consensus parameters derivation error
Fields
§
error: DeriveConsensusParametersErrorConsensus parameters derivation error
SuperSegmentDerivation
Super segment derivation error
Fields
§
error: DeriveSuperSegmentForBlockErrorSuper segment derivation error
ShardSegmentsCheck
Shard segments check error
Fields
§
error: CheckShardSegmentsErrorShard segments check error
InvalidConsensusParameters
Invalid consensus parameters
Fields
MissingSuperSegmentInFirstBlock
Missing a super segment in the first block
PreviousSuperSegmentHeaderNotFound
Previous super segment header not found
SolutionSuperSegmentNotFound
Super segment of the solution’s piece not found
Fields
§
segment_index: SegmentIndexSegment index of the piece the solution’s sector requires
InvalidHistorySize
Invalid history size
Fields
§
history_size: HistorySizeHistory size in the solution
§
current_history_size: HistorySizeCurrent history size
InvalidSuperSegmentRoot
Invalid super segment root
Fields
InvalidPotCheckpoints
Invalid PoT checkpoints
InvalidProofOfTime
Invalid proof of time
SolutionError
Solution error
Fields
§
error: SolutionVerifyErrorSolution error
Trait Implementations§
Source§impl Error for BeaconChainBlockVerificationError
impl Error for BeaconChainBlockVerificationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<BeaconChainBlockVerificationError> for BlockVerificationError
impl From<BeaconChainBlockVerificationError> for BlockVerificationError
Source§fn from(error: BeaconChainBlockVerificationError) -> Self
fn from(error: BeaconChainBlockVerificationError) -> Self
Converts to this type from the input type.
Source§impl From<CheckShardSegmentsError> for BeaconChainBlockVerificationError
impl From<CheckShardSegmentsError> for BeaconChainBlockVerificationError
Source§impl From<DeriveConsensusParametersError> for BeaconChainBlockVerificationError
impl From<DeriveConsensusParametersError> for BeaconChainBlockVerificationError
Source§impl From<DeriveSuperSegmentForBlockError> for BeaconChainBlockVerificationError
impl From<DeriveSuperSegmentForBlockError> for BeaconChainBlockVerificationError
Auto Trait Implementations§
impl Forget for BeaconChainBlockVerificationError
impl Freeze for BeaconChainBlockVerificationErrorwhere
*const OwnedBlockHeaderConsensusParameters is !null: Freeze,
PhantomData<OwnedBlockHeaderConsensusParameters>: Freeze,
*const Option<SuperSegmentRoot> is !null: Freeze,
PhantomData<Option<SuperSegmentRoot>>: Freeze,
impl Move for BeaconChainBlockVerificationError
impl RefUnwindSafe for BeaconChainBlockVerificationError
impl Send for BeaconChainBlockVerificationError
impl Sync for BeaconChainBlockVerificationError
impl Unpin for BeaconChainBlockVerificationError
impl UnsafeUnpin for BeaconChainBlockVerificationErrorwhere
*const OwnedBlockHeaderConsensusParameters is !null: UnsafeUnpin,
PhantomData<OwnedBlockHeaderConsensusParameters>: UnsafeUnpin,
*const Option<SuperSegmentRoot> is !null: UnsafeUnpin,
PhantomData<Option<SuperSegmentRoot>>: UnsafeUnpin,
impl UnwindSafe for BeaconChainBlockVerificationErrorwhere
BoxRaw<OwnedBlockHeaderConsensusParameters>: UnwindSafe,
BoxRaw<Option<SuperSegmentRoot>>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more