Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(miner): fix scary verified power miscalculation upon extension #12720

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

ZenGround0
Copy link
Contributor

@ZenGround0 ZenGround0 commented Nov 25, 2024

Related Issues

They probably exist but I couldn't find them

Proposed Changes

Fix sectors display to calculate verified power against correct power base epoch. This way we don't divide by an incorrect denominator and scare SPs into thinking extensions will dilute their power (i.e. lets not let the whole point of FIP 0045 go to waste)

Additional Info

slack thread here: https://filecoinproject.slack.com/archives/C015KQQLQQ1/p1728479245409819

Checklist

Before you mark the PR ready for review, please make sure that:

github-actions[bot]

This comment was marked as resolved.

@ZenGround0 ZenGround0 changed the title fix:lotus-miner:Fix scary verified power miscalculation upon extension fix : lotus-miner : Fix scary verified power miscalculation upon extension Nov 25, 2024
github-actions[bot]

This comment was marked as resolved.

@ZenGround0 ZenGround0 changed the title fix : lotus-miner : Fix scary verified power miscalculation upon extension fix(lotus-miner): Fix scary verified power miscalculation upon extension Nov 25, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

@ZenGround0 ZenGround0 force-pushed the fix/erroneous-verified-power branch from c586c0c to a7e0f64 Compare November 25, 2024 08:33
@ZenGround0
Copy link
Contributor Author

idk why actinos bot hates me the title is fine

@ZenGround0 ZenGround0 dismissed github-actions[bot]’s stale review November 25, 2024 08:35

The title is in the correct format

@rjan90
Copy link
Contributor

rjan90 commented Nov 25, 2024

idk why actinos bot hates me the title is fine

It probably hates you because of the capital letter, which now I see is not listed in "PR Title Conventions" section, but only in the linked Conventional Commits guide.

I will upen a PR for it

@rjan90 rjan90 changed the title fix(lotus-miner): Fix scary verified power miscalculation upon extension fix(lotus-miner): fix scary verified power miscalculation upon extension Nov 25, 2024
github-actions[bot]

This comment was marked as resolved.

@rjan90 rjan90 changed the title fix(lotus-miner): fix scary verified power miscalculation upon extension fix(miner): fix scary verified power miscalculation upon extension Nov 25, 2024
@github-actions github-actions bot dismissed their stale review November 25, 2024 09:39

PR title now matches the required format.

@rjan90 rjan90 dismissed github-actions[bot]’s stale review November 25, 2024 09:40

Matches the required format

@ZenGround0 ZenGround0 requested a review from magik6k November 25, 2024 10:57
Copy link
Contributor

@magik6k magik6k left a comment

Choose a reason for hiding this comment

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

Looks correct.

This won't need backporting to Curio SPTool as it does this listing a little differently (always using chain info), and seems to be correct already

@ZenGround0
Copy link
Contributor Author

and seems to be correct already

Yeah @beck-8 brought this up in thread curio is all set

@ZenGround0 ZenGround0 merged commit 70996d0 into master Nov 27, 2024
89 of 90 checks passed
@ZenGround0 ZenGround0 deleted the fix/erroneous-verified-power branch November 27, 2024 05:03
virajbhartiya pushed a commit to virajbhartiya/lotus that referenced this pull request Nov 28, 2024
…ilecoin-project#12720)

* Fix scary verified power calculation

* Update changelog

---------

Co-authored-by: zenground0 <[email protected]>
rjan90 pushed a commit that referenced this pull request Nov 28, 2024
…12720)

* Fix scary verified power calculation

* Update changelog

---------

Co-authored-by: zenground0 <[email protected]>
rjan90 pushed a commit that referenced this pull request Nov 28, 2024
…12720)

* Fix scary verified power calculation

* Update changelog

---------

Co-authored-by: zenground0 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ☑️ Done (Archive)
Development

Successfully merging this pull request may close these issues.

3 participants