-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add seal regression testing support
feat: add tests from v16 and v18* *v17 missed result collection for various reasons, but could always be added later if needed
- Loading branch information
1 parent
266acc3
commit 8976839
Showing
12 changed files
with
962 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
use storage_proofs_core::api_version::ApiVersion; | ||
|
||
use crate::types::{PoRepConfig, PoRepProofPartitions, SectorSize}; | ||
|
||
#[derive(Clone, Copy, Debug)] | ||
pub struct SectorClass { | ||
pub sector_size: SectorSize, | ||
pub partitions: PoRepProofPartitions, | ||
pub porep_id: [u8; 32], | ||
pub api_version: ApiVersion, | ||
} | ||
|
||
impl From<SectorClass> for PoRepConfig { | ||
fn from(x: SectorClass) -> Self { | ||
let SectorClass { | ||
sector_size, | ||
partitions, | ||
porep_id, | ||
api_version, | ||
} = x; | ||
PoRepConfig { | ||
sector_size, | ||
partitions, | ||
porep_id, | ||
api_version, | ||
api_features: vec![], | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.