Skip to content

Commit

Permalink
Add QAPowerMax method
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek committed Sep 9, 2022
1 parent 395c37a commit 6740cdd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions builtin/v9/miner/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,10 @@ type VestSpec struct {
StepDuration abi.ChainEpoch // Duration between successive incremental vests (independent of vesting period).
Quantization abi.ChainEpoch // Maximum precision of vesting table (limits cardinality of table).
}

// Returns maximum achievable QA power.
func QAPowerMax(size abi.SectorSize) abi.StoragePower {
return big.Div(
big.Mul(big.NewInt(int64(size)), builtin.VerifiedDealWeightMultiplier),
builtin.QualityBaseMultiplier)
}

0 comments on commit 6740cdd

Please sign in to comment.