Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions cgo/proofs.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,17 +322,15 @@ func GetNumPartitionForFallbackPost(registeredProof RegisteredPoStProof, numSect
return uint(resp.value), nil
}

func ClearCache(sectorSize uint64, cacheDirPath SliceRefUint8) error {
func ClearCache(cacheDirPath SliceRefUint8) error {
resp := (*resultVoid)(C.clear_cache(
C.uint64_t(sectorSize),
(C.slice_ref_uint8_t)(cacheDirPath)))
defer resp.destroy()
return CheckErr(resp)
}

func ClearSyntheticProofs(sectorSize uint64, cacheDirPath SliceRefUint8) error {
func ClearSyntheticProofs(cacheDirPath SliceRefUint8) error {
resp := (*resultVoid)(C.clear_synthetic_proofs(
C.uint64_t(sectorSize),
(C.slice_ref_uint8_t)(cacheDirPath)))
defer resp.destroy()
return CheckErr(resp)
Expand Down
8 changes: 4 additions & 4 deletions proofs.go
Original file line number Diff line number Diff line change
Expand Up @@ -664,13 +664,13 @@ func GetNumPartitionForFallbackPost(proofType abi.RegisteredPoStProof, numSector
}

// ClearCache
func ClearCache(sectorSize uint64, cacheDirPath string) error {
return cgo.ClearCache(sectorSize, cgo.AsSliceRefUint8([]byte(cacheDirPath)))
func ClearCache(cacheDirPath string) error {
return cgo.ClearCache(cgo.AsSliceRefUint8([]byte(cacheDirPath)))
}

// ClearSyntheticProofs
func ClearSyntheticProofs(sectorSize uint64, cacheDirPath string) error {
return cgo.ClearSyntheticProofs(sectorSize, cgo.AsSliceRefUint8([]byte(cacheDirPath)))
func ClearSyntheticProofs(cacheDirPath string) error {
return cgo.ClearSyntheticProofs(cgo.AsSliceRefUint8([]byte(cacheDirPath)))
}

func GenerateSynthProofs(
Expand Down
Loading
Loading