Skip to content

Commit 9c6133f

Browse files
committed
fix: remove accidentally added type (unused previously)
fix: apply review feedback
1 parent 771e9f2 commit 9c6133f

File tree

3 files changed

+18
-47
lines changed

3 files changed

+18
-47
lines changed

filecoin-proofs/src/types/mod.rs

-12
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,6 @@ pub struct SectorUpdateProofInputs {
108108
pub comm_d_new: Commitment,
109109
}
110110

111-
#[derive(Debug, Clone, Serialize, Deserialize)]
112-
pub struct SealRegressionRecord {
113-
pub porep_config: PoRepConfig,
114-
pub comm_r: Commitment,
115-
pub comm_d: Commitment,
116-
pub prover_id: ProverId,
117-
pub sector_id: SectorId,
118-
pub ticket: [u8; 32],
119-
pub seed: [u8; 32],
120-
pub proof: Vec<u8>,
121-
}
122-
123111
// This FallbackPoStSectorProof is used during Fallback PoSt, but
124112
// contains only Vanilla proof information and is not a full Fallback
125113
// PoSt proof.

filecoin-proofs/src/types/regression_record.rs

-29
This file was deleted.

filecoin-proofs/tests/regression.rs

+18-6
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,37 @@ use std::path::Path;
44

55
use anyhow::Result;
66
use filecoin_proofs::{
7-
verify_seal, SealRegressionRecord, SectorShape16KiB, SectorShape1GiB, SectorShape2KiB,
8-
SectorShape32GiB, SectorShape32KiB, SectorShape4KiB, SectorShape512MiB, SectorShape64GiB,
9-
SectorShape8MiB, SECTOR_SIZE_16_KIB, SECTOR_SIZE_1_GIB, SECTOR_SIZE_2_KIB, SECTOR_SIZE_32_GIB,
7+
verify_seal, SectorShape16KiB, SectorShape1GiB, SectorShape2KiB, SectorShape32GiB,
8+
SectorShape32KiB, SectorShape4KiB, SectorShape512MiB, SectorShape64GiB, SectorShape8MiB,
9+
SECTOR_SIZE_16_KIB, SECTOR_SIZE_1_GIB, SECTOR_SIZE_2_KIB, SECTOR_SIZE_32_GIB,
1010
SECTOR_SIZE_32_KIB, SECTOR_SIZE_4_KIB, SECTOR_SIZE_512_MIB, SECTOR_SIZE_64_GIB,
1111
SECTOR_SIZE_8_MIB,
1212
};
1313
use log::{error, info};
14+
use serde::{Deserialize, Serialize};
1415

16+
use filecoin_proofs::{Commitment, PoRepConfig, ProverId};
1517
#[cfg(feature = "persist-regression-proofs")]
1618
use filecoin_proofs::{
17-
MerkleTreeTrait, PoRepConfig, ProverId, SealCommitOutput, SealPreCommitOutput,
18-
PUBLISHED_SECTOR_SIZES,
19+
MerkleTreeTrait, SealCommitOutput, SealPreCommitOutput, PUBLISHED_SECTOR_SIZES,
1920
};
20-
#[cfg(feature = "persist-regression-proofs")]
2121
use storage_proofs_core::sector::SectorId;
2222

2323
const V16_SEAL_REGRESSION_RECORDS: &str = "seal_regression_records-v16.json";
2424
const V18_SEAL_REGRESSION_RECORDS: &str = "seal_regression_records-v18.json";
2525

26+
#[derive(Debug, Clone, Serialize, Deserialize)]
27+
pub(crate) struct SealRegressionRecord {
28+
pub porep_config: PoRepConfig,
29+
pub comm_r: Commitment,
30+
pub comm_d: Commitment,
31+
pub prover_id: ProverId,
32+
pub sector_id: SectorId,
33+
pub ticket: [u8; 32],
34+
pub seed: [u8; 32],
35+
pub proof: Vec<u8>,
36+
}
37+
2638
#[cfg(feature = "persist-regression-proofs")]
2739
#[allow(dead_code)]
2840
#[allow(clippy::too_many_arguments)]

0 commit comments

Comments
 (0)