Skip to content

Commit

Permalink
revert to using fake_generate_post instead of real generate_post (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
laser authored Feb 26, 2019
1 parent ca7b335 commit bc025a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion filecoin-proofs/src/api/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ pub struct PoStInput {
}

pub fn fake_generate_post(
_sector_bytes: UnpaddedBytesAmount,
_sector_bytes: PaddedBytesAmount,
input: PoStInput,
) -> error::Result<PoStOutput> {
let faults: Vec<u64> = if !input.input_parts.is_empty() {
Expand Down
4 changes: 2 additions & 2 deletions filecoin-proofs/src/api/sector_builder/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
);
Expand Down

0 comments on commit bc025a2

Please sign in to comment.