Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Commit

Permalink
make the dispute window a variable (#1363)
Browse files Browse the repository at this point in the history
This way, we can modify it from lotus when testing.

This change also marks it as PARAM_SPEC instead of PARAM_TODO.
  • Loading branch information
Stebalien authored Jan 22, 2021
1 parent 86a310d commit c7ea991
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions actors/builtin/miner/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ var WPoStProvingPeriod = abi.ChainEpoch(builtin.EpochsInDay) // 24 hours PARAM_S
// This provides a miner enough time to compute and propagate a Window PoSt proof.
var WPoStChallengeWindow = abi.ChainEpoch(30 * 60 / builtin.EpochDurationSeconds) // 30 minutes (48 per day) PARAM_SPEC

// WPoStDisputeWindow is the period after a challenge window ends during which
// PoSts submitted during that period may be disputed.
var WPoStDisputeWindow = 2 * ChainFinality // PARAM_SPEC

// The number of non-overlapping PoSt deadlines in a proving period.
// This spreads a miner's Window PoSt work across a proving period.
const WPoStPeriodDeadlines = uint64(48) // PARAM_SPEC
Expand Down Expand Up @@ -224,10 +228,6 @@ const DealLimitDenominator = 134217728 // PARAM_SPEC
// for permissioned actor methods and winning block elections.
const ConsensusFaultIneligibilityDuration = ChainFinality

// WPoStDisputeWindow is the period after a challenge window ends during which
// PoSts submitted during that period may be disputed.
const WPoStDisputeWindow = 2 * ChainFinality // PARAM_TODO

// DealWeight and VerifiedDealWeight are spacetime occupied by regular deals and verified deals in a sector.
// Sum of DealWeight and VerifiedDealWeight should be less than or equal to total SpaceTime of a sector.
// Sectors full of VerifiedDeals will have a SectorQuality of VerifiedDealWeightMultiplier/QualityBaseMultiplier.
Expand Down

0 comments on commit c7ea991

Please sign in to comment.