Skip to content

Commit d5fdfdb

Browse files
authored
chore: bump filecoin-proofs-api to v19.0 (#536)
* chore: bump filecoin-proofs-api to v19.0 chore: bump filecoin-proofs-api to v19.0 * fix: remove unused sector_size from cache function calls fix: remove unused sector_size from cache function calls * chore: prefix sector_size parameters with underscore to indicate intentional unused variables chore: prefix sector_size parameters with underscore to indicate intentional unused variables * feat(api)!: remove unused sectorSize from cache functions BREAKING CHANGE: ClearCache and ClearSyntheticProofs no longer accept sectorSize parameter. * chore: rustfmt chore: rustfmt
1 parent 552ab5c commit d5fdfdb

File tree

5 files changed

+326
-79
lines changed

5 files changed

+326
-79
lines changed

cgo/proofs.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,17 +322,15 @@ func GetNumPartitionForFallbackPost(registeredProof RegisteredPoStProof, numSect
322322
return uint(resp.value), nil
323323
}
324324

325-
func ClearCache(sectorSize uint64, cacheDirPath SliceRefUint8) error {
325+
func ClearCache(cacheDirPath SliceRefUint8) error {
326326
resp := (*resultVoid)(C.clear_cache(
327-
C.uint64_t(sectorSize),
328327
(C.slice_ref_uint8_t)(cacheDirPath)))
329328
defer resp.destroy()
330329
return CheckErr(resp)
331330
}
332331

333-
func ClearSyntheticProofs(sectorSize uint64, cacheDirPath SliceRefUint8) error {
332+
func ClearSyntheticProofs(cacheDirPath SliceRefUint8) error {
334333
resp := (*resultVoid)(C.clear_synthetic_proofs(
335-
C.uint64_t(sectorSize),
336334
(C.slice_ref_uint8_t)(cacheDirPath)))
337335
defer resp.destroy()
338336
return CheckErr(resp)

proofs.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -664,13 +664,13 @@ func GetNumPartitionForFallbackPost(proofType abi.RegisteredPoStProof, numSector
664664
}
665665

666666
// ClearCache
667-
func ClearCache(sectorSize uint64, cacheDirPath string) error {
668-
return cgo.ClearCache(sectorSize, cgo.AsSliceRefUint8([]byte(cacheDirPath)))
667+
func ClearCache(cacheDirPath string) error {
668+
return cgo.ClearCache(cgo.AsSliceRefUint8([]byte(cacheDirPath)))
669669
}
670670

671671
// ClearSyntheticProofs
672-
func ClearSyntheticProofs(sectorSize uint64, cacheDirPath string) error {
673-
return cgo.ClearSyntheticProofs(sectorSize, cgo.AsSliceRefUint8([]byte(cacheDirPath)))
672+
func ClearSyntheticProofs(cacheDirPath string) error {
673+
return cgo.ClearSyntheticProofs(cgo.AsSliceRefUint8([]byte(cacheDirPath)))
674674
}
675675

676676
func GenerateSynthProofs(

0 commit comments

Comments
 (0)