-
Notifications
You must be signed in to change notification settings - Fork 136
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
Add proof aggregation API #169
Conversation
fdabfe9
to
cee544c
Compare
6417745
to
79d2c60
Compare
240024d
to
6b0e09d
Compare
Note that there is still a crash bug on clean-up that needs to be resolved
d3b301c
to
68614cf
Compare
} | ||
|
||
impl Drop for fil_AggregateProof { | ||
fn drop(&mut self) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this leaks the error_msg
if there is one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not allocated/managed, it just points to a rust string from the ffi toolkit as far as I know (similar to all other usages of the error_msg
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you implement Drop
manually, you also need to drop error_msg
. In other structs the #[derive(DropStructMacro)]
implements Drop
. Though in this case you can just use the DropStructMacro
derive instead (see https://github.com/filecoin-project/rust-fil-ffi-toolkit/tree/master/drop-struct-macro-derive#readme for more information).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I see, will take a closer look. At one point, I may have needed to impl Drop rather than use the macro, but not sure that's the case any more.
3bcefaf
to
f85e111
Compare
Signed-off-by: Jakub Sztandera <[email protected]>
style: rust fmt and clippy fixes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go side looks good
Requires filecoin-project/rust-fil-proofs#1395 and filecoin-project/rust-filecoin-proofs-api#51 and updated proofs releases before merging. |
Also requires: filecoin-project/rust-fil-ffi-toolkit#6 |
This PR is building on #166, so it's an alternative to it.