1
- use crate :: TemporaryAuxKey ;
2
1
use filecoin_proofs:: types:: UnpaddedBytesAmount ;
3
- use filecoin_proofs:: { Commitment , PersistentAux , PieceInfo } ;
2
+ use filecoin_proofs:: { Commitment , PieceInfo } ;
4
3
use serde:: { Deserialize , Serialize } ;
5
4
use storage_proofs:: sector:: SectorId ;
6
5
@@ -24,7 +23,6 @@ pub struct SealedSectorMetadata {
24
23
pub blake2b_checksum : Vec < u8 > ,
25
24
/// number of bytes in the sealed sector-file as returned by `std::fs::metadata`
26
25
pub len : u64 ,
27
- pub p_aux : PersistentAux ,
28
26
pub ticket : SealTicket ,
29
27
pub seed : SealSeed ,
30
28
}
@@ -49,28 +47,17 @@ impl From<PieceMetadata> for PieceInfo {
49
47
pub struct PersistablePreCommitOutput {
50
48
pub comm_d : Commitment ,
51
49
pub comm_r : Commitment ,
52
- pub p_aux : PersistentAux ,
53
50
}
54
51
55
52
#[ allow( clippy:: large_enum_variant) ]
56
53
#[ derive( Clone , Serialize , Deserialize , Debug , PartialEq ) ]
57
54
pub enum SealStatus {
58
55
Committed ( Box < SealedSectorMetadata > ) ,
59
- Committing (
60
- SealTicket ,
61
- TemporaryAuxKey ,
62
- PersistablePreCommitOutput ,
63
- SealSeed ,
64
- ) ,
65
- CommittingPaused (
66
- SealTicket ,
67
- TemporaryAuxKey ,
68
- PersistablePreCommitOutput ,
69
- SealSeed ,
70
- ) ,
56
+ Committing ( SealTicket , PersistablePreCommitOutput , SealSeed ) ,
57
+ CommittingPaused ( SealTicket , PersistablePreCommitOutput , SealSeed ) ,
71
58
Failed ( String ) ,
72
59
AcceptingPieces ,
73
- PreCommitted ( SealTicket , TemporaryAuxKey , PersistablePreCommitOutput ) ,
60
+ PreCommitted ( SealTicket , PersistablePreCommitOutput ) ,
74
61
PreCommitting ( SealTicket ) ,
75
62
PreCommittingPaused ( SealTicket ) ,
76
63
FullyPacked ,
@@ -80,11 +67,11 @@ impl SealStatus {
80
67
pub fn persistable_pre_commit_output ( & self ) -> Option < & PersistablePreCommitOutput > {
81
68
match self {
82
69
SealStatus :: Committed ( _) => None ,
83
- SealStatus :: Committing ( _, _ , p, _) => Some ( & p) ,
84
- SealStatus :: CommittingPaused ( _, _ , p, _) => Some ( & p) ,
70
+ SealStatus :: Committing ( _, p, _) => Some ( & p) ,
71
+ SealStatus :: CommittingPaused ( _, p, _) => Some ( & p) ,
85
72
SealStatus :: Failed ( _) => None ,
86
73
SealStatus :: AcceptingPieces => None ,
87
- SealStatus :: PreCommitted ( _, _ , p) => Some ( & p) ,
74
+ SealStatus :: PreCommitted ( _, p) => Some ( & p) ,
88
75
SealStatus :: PreCommitting ( _) => None ,
89
76
SealStatus :: PreCommittingPaused ( _) => None ,
90
77
SealStatus :: FullyPacked => None ,
@@ -94,11 +81,11 @@ impl SealStatus {
94
81
pub fn ticket ( & self ) -> Option < & SealTicket > {
95
82
match self {
96
83
SealStatus :: Committed ( meta) => Some ( & meta. ticket ) ,
97
- SealStatus :: Committing ( t, _, _, _ ) => Some ( & t) ,
98
- SealStatus :: CommittingPaused ( t, _, _, _ ) => Some ( & t) ,
84
+ SealStatus :: Committing ( t, _, _) => Some ( & t) ,
85
+ SealStatus :: CommittingPaused ( t, _, _) => Some ( & t) ,
99
86
SealStatus :: Failed ( _) => None ,
100
87
SealStatus :: AcceptingPieces => None ,
101
- SealStatus :: PreCommitted ( t, _, _ ) => Some ( & t) ,
88
+ SealStatus :: PreCommitted ( t, _) => Some ( & t) ,
102
89
SealStatus :: PreCommitting ( t) => Some ( & t) ,
103
90
SealStatus :: PreCommittingPaused ( t) => Some ( & t) ,
104
91
SealStatus :: FullyPacked => None ,
@@ -108,11 +95,11 @@ impl SealStatus {
108
95
pub fn seed ( & self ) -> Option < & SealSeed > {
109
96
match self {
110
97
SealStatus :: Committed ( meta) => Some ( & meta. seed ) ,
111
- SealStatus :: Committing ( _, _, _ , s) => Some ( & s) ,
112
- SealStatus :: CommittingPaused ( _, _, _ , s) => Some ( & s) ,
98
+ SealStatus :: Committing ( _, _, s) => Some ( & s) ,
99
+ SealStatus :: CommittingPaused ( _, _, s) => Some ( & s) ,
113
100
SealStatus :: Failed ( _) => None ,
114
101
SealStatus :: AcceptingPieces => None ,
115
- SealStatus :: PreCommitted ( _, _, _ ) => None ,
102
+ SealStatus :: PreCommitted ( _, _) => None ,
116
103
SealStatus :: PreCommitting ( _) => None ,
117
104
SealStatus :: PreCommittingPaused ( _) => None ,
118
105
SealStatus :: FullyPacked => None ,
0 commit comments