Skip to content

Commit

Permalink
feat: properly version bump the sector update proof version
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptonemo committed Dec 7, 2023
1 parent 1c54f4e commit 76340fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ impl RegisteredUpdateProof {

match self {
StackedDrg2KiBV1 | StackedDrg8MiBV1 | StackedDrg512MiBV1 | StackedDrg32GiBV1
| StackedDrg64GiBV1 => ApiVersion::V1_1_0,
| StackedDrg64GiBV1 => ApiVersion::V1_2_0,
}
}

Expand Down Expand Up @@ -790,7 +790,7 @@ impl RegisteredUpdateProof {
match self {
StackedDrg2KiBV1 | StackedDrg8MiBV1 | StackedDrg512MiBV1 | StackedDrg32GiBV1
| StackedDrg64GiBV1 => {
assert_eq!(self.version(), ApiVersion::V1_1_0);
assert_eq!(self.version(), ApiVersion::V1_2_0);
PoRepConfig {
sector_size: self.sector_size(),
partitions: PoRepProofPartitions(self.partitions()),
Expand Down

0 comments on commit 76340fc

Please sign in to comment.