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

Set ConsensusMinerMinPower to 10 TiB for all PoStProofPolicies #1430

Merged
merged 1 commit into from
May 20, 2021

Conversation

arajasek
Copy link
Collaborator

@arajasek arajasek commented May 20, 2021

Lotus has been unintentionally overwriting this value to 10 TiB for all proof types since mainnet. We might as well reflect this behaviour in the actors code.

@arajasek arajasek requested a review from ZenGround0 May 20, 2021 15:31
@@ -441,15 +441,16 @@ func TestPowerAndPledgeAccounting(t *testing.T) {

power64Unit, err := builtin.ConsensusMinerMinPower(abi.RegisteredPoStProof_StackedDrgWindow64GiBV1)
require.NoError(t, err)
assert.True(t, power64Unit.GreaterThan(powerUnit))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this subtest which is now testing deprecated behavior ("consensus power depends on proof type")

@codecov-commenter
Copy link

Codecov Report

Merging #1430 (249f914) into release/v4 (51c715d) will decrease coverage by 0.0%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##           release/v4   #1430     +/-   ##
============================================
- Coverage        65.1%   65.0%   -0.1%     
============================================
  Files              81      81             
  Lines            8246    8246             
============================================
- Hits             5370    5368      -2     
- Misses           1984    1985      +1     
- Partials          892     893      +1     

@arajasek arajasek merged commit 2447083 into release/v4 May 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants