diff --git a/filecoin-proofs/src/api/internal.rs b/filecoin-proofs/src/api/internal.rs index f476aade0..68d5b5bae 100644 --- a/filecoin-proofs/src/api/internal.rs +++ b/filecoin-proofs/src/api/internal.rs @@ -274,7 +274,7 @@ pub struct PoStInput { } pub fn fake_generate_post( - _sector_bytes: UnpaddedBytesAmount, + _sector_bytes: PaddedBytesAmount, input: PoStInput, ) -> error::Result { let faults: Vec = if !input.input_parts.is_empty() { diff --git a/filecoin-proofs/src/api/sector_builder/scheduler.rs b/filecoin-proofs/src/api/sector_builder/scheduler.rs index eebaf9bb6..2b34ea5d7 100644 --- a/filecoin-proofs/src/api/sector_builder/scheduler.rs +++ b/filecoin-proofs/src/api/sector_builder/scheduler.rs @@ -192,10 +192,10 @@ impl SectorMetadataManager { let mut seed = [0; 32]; seed.copy_from_slice(challenge_seed); - let output = internal::generate_post( + let output = internal::fake_generate_post( self.sector_store.inner.config().sector_bytes(), PoStInput { - challenge_seed: *challenge_seed, + challenge_seed: seed, input_parts, }, );