pub enum SolutionVerifyError {
Show 13 variants
InvalidPieceOffset {
piece_offset: u16,
max_pieces_in_sector: u16,
},
FutureHistorySize {
current: HistorySize,
solution: HistorySize,
},
SectorExpired {
expiration_history_size: HistorySize,
current_history_size: HistorySize,
},
PieceSegmentNotInSuperSegment {
segment_index: SegmentIndex,
max_segment_index: SegmentIndex,
num_segments: u32,
},
RecordNotInSegment,
SegmentNotInSuperSegment,
OutsideSolutionRange {
solution_range: SolutionRange,
solution_distance: SolutionDistance,
},
InvalidProofOfSpace,
InvalidShardCommitment,
InvalidInputShard {
shard_index: ShardIndex,
shard_kind: Option<ShardKind>,
},
InvalidSolutionShard {
solution_shard_index: ShardIndex,
solution_parent_shard_index: Option<ShardIndex>,
expected_shard_index: ShardIndex,
expected_shard_kind: RealShardKind,
},
InvalidChunkProof,
InvalidHistorySize,
}Expand description
Solution verification errors
Variants§
InvalidPieceOffset
Invalid piece offset
Fields
FutureHistorySize
History size is in the future
Fields
current: HistorySizeCurrent history size
solution: HistorySizeHistory size solution was created for
SectorExpired
Sector expired
Fields
expiration_history_size: HistorySizeExpiration history size
current_history_size: HistorySizeCurrent history size
PieceSegmentNotInSuperSegment
Segment of the piece the sector requires is not in the super segment
Fields
segment_index: SegmentIndexSegment index of the piece the sector requires at the piece offset
max_segment_index: SegmentIndexMax index of the segment in the super segment
RecordNotInSegment
Record does not belong to the segment
SegmentNotInSuperSegment
Segment doesn’t belong to the super segment
OutsideSolutionRange
Solution is outside the solution range
Fields
solution_range: SolutionRangeSolution range
solution_distance: SolutionDistanceSolution distance
InvalidProofOfSpace
Invalid proof of space
InvalidShardCommitment
Invalid shard commitment
InvalidInputShard
Invalid input shard
InvalidSolutionShard
Invalid solution shard
Fields
solution_shard_index: ShardIndexSolution shard index
solution_parent_shard_index: Option<ShardIndex>Solution shard index
expected_shard_index: ShardIndexExpected shard index
expected_shard_kind: RealShardKindExpected shard kind
InvalidChunkProof
Invalid chunk proof
InvalidHistorySize
Invalid history size
Trait Implementations§
Source§impl Debug for SolutionVerifyError
impl Debug for SolutionVerifyError
Source§impl Display for SolutionVerifyError
impl Display for SolutionVerifyError
impl Eq for SolutionVerifyError
Source§impl Error for SolutionVerifyError
impl Error for SolutionVerifyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for SolutionVerifyError
impl PartialEq for SolutionVerifyError
impl StructuralPartialEq for SolutionVerifyError
Auto Trait Implementations§
impl Forget for SolutionVerifyError
impl Freeze for SolutionVerifyError
impl Move for SolutionVerifyError
impl RefUnwindSafe for SolutionVerifyError
impl Send for SolutionVerifyError
impl Sync for SolutionVerifyError
impl Unpin for SolutionVerifyError
impl UnsafeUnpin for SolutionVerifyError
impl UnwindSafe for SolutionVerifyError
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
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> ⓘ
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> ⓘ
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