diff --git a/fil-proofs-tooling/src/metadata.rs b/fil-proofs-tooling/src/metadata.rs index be125c632d..168c6b04d6 100644 --- a/fil-proofs-tooling/src/metadata.rs +++ b/fil-proofs-tooling/src/metadata.rs @@ -40,6 +40,7 @@ impl GitMetadata { let repo = Repository::discover(&repo_path)?; let head = repo.head()?; let commit = head.peel_to_commit()?; + #[allow(deprecated)] let date = Utc.timestamp(commit.time().seconds(), 0); Ok(GitMetadata { diff --git a/filecoin-proofs/src/api/seal.rs b/filecoin-proofs/src/api/seal.rs index 5520f4fe70..9e32ff891c 100644 --- a/filecoin-proofs/src/api/seal.rs +++ b/filecoin-proofs/src/api/seal.rs @@ -990,7 +990,7 @@ pub fn verify_seal( &proof, &ChallengeRequirements { minimum_challenges: POREP_MINIMUM_CHALLENGES - .porep_partitions(u64::from(SectorSize::from(porep_config))), + .from_sector_size(u64::from(SectorSize::from(porep_config))), }, ) }; @@ -1110,7 +1110,7 @@ pub fn verify_batch_seal( &proofs, &ChallengeRequirements { minimum_challenges: POREP_MINIMUM_CHALLENGES - .porep_partitions(u64::from(SectorSize::from(porep_config))), + .from_sector_size(u64::from(SectorSize::from(porep_config))), }, ) .map_err(Into::into); diff --git a/filecoin-proofs/src/constants.rs b/filecoin-proofs/src/constants.rs index b57c4c394a..064691bdca 100644 --- a/filecoin-proofs/src/constants.rs +++ b/filecoin-proofs/src/constants.rs @@ -73,7 +73,7 @@ impl PorepMinimumChallenges { self.0.write().expect("POREP_MINIMUM_CHALLENGES poisoned") } - pub fn porep_partitions(&self, sector_size: u64) -> usize { + pub fn from_sector_size(&self, sector_size: u64) -> usize { match self .0 .read() diff --git a/filecoin-proofs/src/parameters.rs b/filecoin-proofs/src/parameters.rs index ae6ca2e5a5..b5fc4449f7 100644 --- a/filecoin-proofs/src/parameters.rs +++ b/filecoin-proofs/src/parameters.rs @@ -83,7 +83,7 @@ pub fn setup_params( ) -> Result { let layer_challenges = select_challenges( partitions, - POREP_MINIMUM_CHALLENGES.porep_partitions(u64::from(sector_bytes)), + POREP_MINIMUM_CHALLENGES.from_sector_size(u64::from(sector_bytes)), *LAYERS .read() .expect("LAYERS poisoned")