Skip to content

Commit 1b24d08

Browse files
committed
fix consts
1 parent 3b4af8c commit 1b24d08

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

runtime/src/configs/mod.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -328,13 +328,14 @@ parameter_types! {
328328
// Fault declaration/recovery functionality has been postponed, this won't make a difference until #592 is done.
329329
pub const FaultMaxAge: BlockNumber = 1 * DAYS;
330330
pub const FaultDeclarationCutoffSlack: BlockNumber = 1 * MINUTES;
331-
pub const FaultDeclarationCutoff: BlockNumber = WPoStChallengeLookBack + FaultDeclarationCutoffSlack;
331+
// WPoStChallengeLookBack + a bit of slack.
332+
pub const FaultDeclarationCutoff: BlockNumber = (10 * MINUTES) + (1 * MINUTES);
332333
// <https://github.com/filecoin-project/builtin-actors/blob/8d957d2901c0f2044417c268f0511324f591cb92/runtime/src/runtime/policy.rs#L299>
333334
pub const AddressedSectorsMax: u64 = 25_000;
334335

335336
pub const MinSectorExpiration: BlockNumber = 1 * DAYS;
336-
pub const MaxSectorExpirationSlack: BlockNumber = 30 * DAYS;
337-
pub const MaxSectorExpiration: BlockNumber = 365 * DAYS + MaxSectorExpirationSlack;
337+
// MinDealDuration + a bit of slack.
338+
pub const MaxSectorExpiration: BlockNumber = 365 * DAYS + 30 * DAYS;
338339
pub const SectorMaximumLifetime: BlockNumber = 365 * DAYS;
339340
// Market Pallet
340341
pub const MinDealDuration: u64 = 1 * DAYS;

0 commit comments

Comments
 (0)