-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
refactor:ffi: replace ClearLayerData with ClearCache #11352
refactor:ffi: replace ClearLayerData with ClearCache #11352
Conversation
The `ClearLayerData` FFI call was accidentally introduced with the Synthetic PoRep. The call does under the hood exactly what `ClearCache` is doing. This is a first step to remove `ClearLayerData`t also from the FFI again, in order to reduce the API surface.
@vmx build appears to be broken. |
My Go-fu is not good enough, don't both functions have the same signature: ClearLayerData: https://github.com/filecoin-project/filecoin-ffi/blob/441fa8e61189dc32c2960c1f8d8ba56269f20366/cgo/proofs.go#L232C5-L232C20 Is this breakage unrelated? |
The API is here: I'm not sure why we have two... |
Oh, I see. The "proofs" one converts all the types into cgo types. |
We could also fix this in the FFI by making |
The `ClearLayerData` FFI call was accidentally introduced with the Synthetic PoRep. The call does under the hood exactly what `ClearCache` is doing. It was already removed from Lotus in [PR 11352], so that we can remove it here as well (and as a next steps from the Rust side). This reduces the API surface, which is generally a good idea. [PR 11352]: filecoin-project/lotus#11352
The `ClearLayerData` FFI call was accidentally introduced with the Synthetic PoRep. The call does under the hood exactly what `ClearCache` is doing. It was already removed from Lotus in [PR 11352], so that we can remove it here as well (and as a next steps from the Rust side). This reduces the API surface, which is generally a good idea. [PR 11352]: filecoin-project/lotus#11352
The `ClearLayerData` FFI call was accidentally introduced with the Synthetic PoRep. The call does under the hood exactly what `ClearCache` is doing. It was already removed from Lotus in [PR 11352], so that we can remove it here as well (and as a next steps from the Rust side). This reduces the API surface, which is generally a good idea. [PR 11352]: filecoin-project/lotus#11352
Related Issues
API surface reduction.
Proposed Changes
The
ClearLayerData
FFI call was accidentally introduced with the Synthetic PoRep. The call does under the hood exactly whatClearCache
is doing. This is a first step to removeClearLayerData
t also from the FFI again, in order to reduce the API surface.Additional Info
Checklist
Before you mark the PR ready for review, please make sure that:
<PR type>: <area>: <change being made>
fix: mempool: Introduce a cache for valid signatures
PR type
: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, testarea
, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps