Skip to content

Commit

Permalink
nit: fix naming (#1805)
Browse files Browse the repository at this point in the history
* fix naming

* update changelog

---------

Co-authored-by: Steven Allen <[email protected]>
  • Loading branch information
zhiqiangxu and Stebalien authored Jan 7, 2025
1 parent 1380a2e commit 7f8986c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions shared/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [Unreleased]

- Rename `window_post_partitions_sectors` on both the `RegisteredPoStProof` and `RegisteredSealProof` types to `window_post_partition_sectors` to match the builtin actors (from @zhinqiangxu). This is a small breaking change.

## 4.5.3 [2024-12-04]

- chore: remove the nv25-dev feature flag [#2093](https://github.com/filecoin-project/ref-fvm/pull/2093)
Expand Down
4 changes: 2 additions & 2 deletions shared/src/sector/registered_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl RegisteredPoStProof {
}
/// Returns the partition size, in sectors, associated with a proof type.
/// The partition size is the number of sectors proven in a single PoSt proof.
pub fn window_post_partitions_sector(self) -> Result<u64, String> {
pub fn window_post_partition_sectors(self) -> Result<u64, String> {
// Resolve to post proof and then compute size from that.
use RegisteredPoStProof::*;
match self {
Expand Down Expand Up @@ -219,7 +219,7 @@ impl RegisteredSealProof {

/// Returns the partition size, in sectors, associated with a proof type.
/// The partition size is the number of sectors proven in a single PoSt proof.
pub fn window_post_partitions_sector(self) -> Result<u64, String> {
pub fn window_post_partition_sectors(self) -> Result<u64, String> {
// Resolve to seal proof and then compute size from that.
use RegisteredSealProof::*;
match self {
Expand Down

0 comments on commit 7f8986c

Please sign in to comment.