File tree Expand file tree Collapse file tree 8 files changed +917
-6
lines changed Expand file tree Collapse file tree 8 files changed +917
-6
lines changed Original file line number Diff line number Diff line change @@ -117,12 +117,13 @@ namespace fc::primitives::sector {
117
117
118
118
struct PoStVerifyInfo {
119
119
PoStRandomness randomness;
120
- // / CommR
121
- CID sealed_cid;
122
120
// / From OnChainPoStVerifyInfo
123
121
std::vector<PoStCandidate> candidates;
124
122
std::vector<PoStProof> proofs;
125
123
std::vector<SectorInfo> eligible_sectors;
124
+ // / used to derive 32-byte prover ID
125
+ ActorId prover;
126
+ uint64_t challenge_count;
126
127
};
127
128
128
129
CBOR_TUPLE (SectorId, miner, sector)
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -24,13 +24,14 @@ namespace fc::vm::actor::builtin::miner {
24
24
constexpr MethodNumber kExtendSectorExpirationMethodNumber {9 };
25
25
constexpr MethodNumber kTerminateSectorsMethodNumber {10 };
26
26
constexpr MethodNumber kDeclareTemporaryFaultsMethodNumber {11 };
27
- constexpr MethodNumber kOnDeferredCronEventMethodNumber {11 };
27
+ constexpr MethodNumber kOnDeferredCronEventMethodNumber {12 };
28
+ constexpr MethodNumber kCheckSectorProvenMethodNumber {13 };
28
29
29
30
constexpr MethodNumber kSubmitElectionPoStMethodNumber {20 };
30
31
31
32
ACTOR_METHOD (constructor);
32
33
33
- ACTOR_METHOD (controlAdresses );
34
+ ACTOR_METHOD (controlAddresses );
34
35
35
36
ACTOR_METHOD (changeWorkerAddress);
36
37
@@ -52,6 +53,8 @@ namespace fc::vm::actor::builtin::miner {
52
53
53
54
ACTOR_METHOD (onDeferredCronEvent);
54
55
56
+ ACTOR_METHOD (checkSectorProven);
57
+
55
58
extern const ActorExports exports;
56
59
57
60
} // namespace fc::vm::actor::builtin::miner
Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ namespace fc::vm::actor::builtin::miner {
37
37
38
38
constexpr EpochDuration kDeclaredFaultEffectiveDelay {20 };
39
39
40
+ constexpr uint64_t kWindowedPoStSampleRateNumer {1 };
41
+ constexpr uint64_t kWindowedPoStSampleRateDenum {25 };
42
+
40
43
inline TokenAmount precommitDeposit (SectorSize sector_size,
41
44
ChainEpoch duration) {
42
45
return 0 ;
Original file line number Diff line number Diff line change @@ -180,6 +180,10 @@ namespace fc::vm::actor::builtin::miner {
180
180
Buffer callback_payload;
181
181
};
182
182
183
+ struct CheckSectorProvenParams {
184
+ SectorNumber sector;
185
+ };
186
+
183
187
CBOR_TUPLE (PoStState, proving_period_start, num_consecutive_failures)
184
188
185
189
CBOR_TUPLE (
@@ -229,6 +233,8 @@ namespace fc::vm::actor::builtin::miner {
229
233
CBOR_TUPLE (DeclareTemporaryFaultsParams, sectors, duration)
230
234
231
235
CBOR_TUPLE (OnDeferredCronEventParams, callback_payload)
236
+
237
+ CBOR_TUPLE (CheckSectorProvenParams, sector)
232
238
} // namespace fc::vm::actor::builtin::miner
233
239
234
240
#endif // CPP_FILECOIN_CORE_VM_ACTOR_BUILTIN_MINER_TYPES_HPP
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ namespace fc::vm::actor::builtin::storage_power {
81
81
TokenAmount pledge;
82
82
};
83
83
84
- struct OnSectorTemporaryFaultEffectiveEndParams {
84
+ struct OnSectorTemporaryFaultEffectiveEndParameters {
85
85
std::vector<SectorStorageWeightDesc> weights;
86
86
TokenAmount pledge;
87
87
};
@@ -164,6 +164,8 @@ namespace fc::vm::actor::builtin::storage_power {
164
164
165
165
CBOR_TUPLE (OnSectorTemporaryFaultEffectiveBeginParameters, weights, pledge)
166
166
167
+ CBOR_TUPLE (OnSectorTemporaryFaultEffectiveEndParameters, weights, pledge)
168
+
167
169
CBOR_TUPLE (OnSectorModifyWeightDescParams,
168
170
prev_weight,
169
171
prev_pledge,
Original file line number Diff line number Diff line change @@ -30,7 +30,9 @@ namespace fc::vm {
30
30
MINER_ACTOR_MINER_NOT_ACCOUNT,
31
31
MINER_ACTOR_MINER_NOT_BLS,
32
32
MINER_ACTOR_ILLEGAL_ARGUMENT,
33
+ MINER_ACTOR_NOT_FOUND,
33
34
MINER_ACTOR_WRONG_CALLER,
35
+ MINER_ACTOR_WRONG_EPOCH,
34
36
MINER_ACTOR_POST_TOO_LATE,
35
37
MINER_ACTOR_POST_TOO_EARLY,
36
38
MINER_ACTOR_INSUFFICIENT_FUNDS,
Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ namespace fc::vm {
43
43
case E::MINER_ACTOR_MINER_NOT_BLS:
44
44
case E::MINER_ACTOR_ILLEGAL_ARGUMENT:
45
45
return 16 ; // ErrIllegalArgument in actor-specs
46
+ case E::MINER_ACTOR_NOT_FOUND:
47
+ return 17 ; // ErrNotFound in actor-specs
46
48
case E::MINER_ACTOR_WRONG_CALLER:
49
+ case E::MINER_ACTOR_WRONG_EPOCH:
47
50
return 18 ; // ErrForbidden in actor-specs
48
51
case E::MINER_ACTOR_POST_TOO_LATE:
49
52
case E::MINER_ACTOR_POST_TOO_EARLY:
You can’t perform that action at this time.
0 commit comments