Skip to content

Commit

Permalink
Add FaultySectors error to Fallback PoSt. (#1274)
Browse files Browse the repository at this point in the history
* Add FaultySectors error to Fallback PoSt.

* Test FaultySectors error with invalid PoSt.

* Apply code review.

Co-authored-by: porcuquine <[email protected]>
  • Loading branch information
porcuquine and porcuquine authored Sep 8, 2020
1 parent 1bc4e0d commit 168f71b
Show file tree
Hide file tree
Showing 2 changed files with 252 additions and 12 deletions.
3 changes: 3 additions & 0 deletions storage-proofs/core/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::any::Any;

use crate::sector::SectorId;
use bellperson::SynthesisError;

pub use anyhow::Result;
Expand Down Expand Up @@ -37,6 +38,8 @@ pub enum Error {
Unclassified(String),
#[error("Missing Private Input {0} for sector {1}")]
MissingPrivateInput(&'static str, u64),
#[error("faulty sectors {:?}", _0)]
FaultySectors(Vec<SectorId>),
}

impl From<Box<dyn Any + Send>> for Error {
Expand Down
Loading

0 comments on commit 168f71b

Please sign in to comment.