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

expose staged sector metadata through FFI #368

Merged
merged 4 commits into from
Dec 13, 2018

Conversation

laser
Copy link
Contributor

@laser laser commented Dec 6, 2018

This addresses the rust-proofs side of this go-filecoin issue.

What's in this PR?

  • replace StagedSectorMetadata.sealing_error and accepting_data with seal_status
  • add new get_staged_sectors method + FFI function

@@ -6,13 +6,12 @@ use serde::{Deserialize, Serialize};
use serde_big_array::BigArray;
use std::fmt;

#[derive(Default, Clone, Serialize, Deserialize, Debug, PartialEq)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why no default anymore?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and I found it down below, but you could have it easier by deriving default here and implementing it on SealStatus

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, that's a much better idea. Thanks. Good call.

@dignifiedquire
Copy link
Contributor

@laser anything stopping this PR from being merged?

@laser laser force-pushed the feat/expose-staged-sector-metadata branch from 124f7c4 to fc6ef35 Compare December 10, 2018 18:30
- replace StagedSectorMetadata.sealing_error and accepting_data with seal_status
- add new get_staged_sectors method + FFI function
@sidke sidke force-pushed the feat/expose-staged-sector-metadata branch from fc6ef35 to 2e7bd24 Compare December 12, 2018 21:18
@sidke sidke force-pushed the feat/expose-staged-sector-metadata branch from d66dcc6 to 7925b35 Compare December 13, 2018 00:34
@laser laser merged commit 9c8e484 into master Dec 13, 2018
@laser laser deleted the feat/expose-staged-sector-metadata branch December 13, 2018 17:27
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