Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove clear_layer_data call #95

Merged
merged 1 commit into from
Jan 8, 2025
Merged

fix: remove clear_layer_data call #95

merged 1 commit into from
Jan 8, 2025

Conversation

vmx
Copy link
Contributor

@vmx vmx commented Nov 6, 2023

The clear_layer_data call was accidentally introduced with the Synthetic PoRep. The call does under the hood exactly what clear_cache is doing. It was already removed from the FFI via PR 436, so that we can remove it here as well. This reduces the API surface, which is generally a good idea.

BREAKING CHANGE: clear_layer_data was removed, use clear_cache instead.

@cryptonemo
Copy link
Collaborator

Double check that Forest isn't using this API

@vmx
Copy link
Contributor Author

vmx commented Nov 8, 2023

If I grep for clear on all rust files on the Forest main branch, I don't find any call to proofs.

@vmx
Copy link
Contributor Author

vmx commented Nov 8, 2023

Though I would only merge then whenever we plan to do a breaking release.

@vmx vmx force-pushed the remove-clear-layer-data branch from e0ca485 to a488668 Compare May 7, 2024 10:27
@vmx
Copy link
Contributor Author

vmx commented May 7, 2024

I've again checked Forrest. They have a minimal use of rust-fil-proofs-api, I've checked all calls they use, none of them is the clear_layer_data() one.

@vmx vmx requested a review from cryptonemo May 7, 2024 10:37
The `clear_layer_data` call was accidentally introduced with the Synthetic
PoRep. The call does under the hood exactly what `clear_cache` is doing.
It was already removed from the FFI via [PR 436], so that we can remove
it here as well. This reduces the API surface, which is generally a good
idea.

[PR 436]: filecoin-project/filecoin-ffi#436

BREAKING CHANGE: `clear_layer_data` was removed, use `clear_cache` instead.
@vmx vmx force-pushed the remove-clear-layer-data branch from a488668 to 165af31 Compare June 18, 2024 13:23
@vmx vmx merged commit 0b5325e into master Jan 8, 2025
3 checks passed
@vmx vmx deleted the remove-clear-layer-data branch January 8, 2025 11:54
vmx added a commit to filecoin-project/rust-fil-proofs that referenced this pull request Jan 8, 2025
`clear_layer_data()` isn't used within rust-fil-proofs. It was also removed
from proofs-api with the merge of
filecoin-project/rust-filecoin-proofs-api#95.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants