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

Divide once when calculating qa power #1493

Closed
wants to merge 1 commit into from
Closed

Divide once when calculating qa power #1493

wants to merge 1 commit into from

Conversation

ZenGround0
Copy link
Contributor

Fixes #1250

This is already well tested in miner/policy_test.go TestQuality. The high value of SectorQualityPrecision seems to have kept any error from creeping in to the computation, at least in test cases.

@ZenGround0 ZenGround0 requested a review from a team as a code owner September 24, 2021 14:25
@codecov-commenter
Copy link

Codecov Report

Merging #1493 (2da52a8) into master (7a69070) will not change coverage.
The diff coverage is 100.0%.

@@          Coverage Diff           @@
##           master   #1493   +/-   ##
======================================
  Coverage    71.4%   71.4%           
======================================
  Files          72      72           
  Lines        8546    8546           
======================================
  Hits         6109    6109           
  Misses       1553    1553           
  Partials      884     884           

@jennijuju jennijuju added this to the Network v14 milestone Sep 24, 2021
@ZenGround0
Copy link
Contributor Author

From @Stebalien this might actually need a migration over partition state to be safe. Investigating...

@ZenGround0
Copy link
Contributor Author

This needs a migration for safety. Closing down for now and removing from v14 scope. Putting migration ideas in issue.

@ZenGround0 ZenGround0 closed this Sep 24, 2021
@ZenGround0 ZenGround0 removed this from the Network v14 milestone Sep 24, 2021
@jennijuju jennijuju added this to the Network v14 milestone Sep 25, 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.

Miner Policy: Correct truncating division
5 participants