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

feat: View the currently known proving live sectors information #8720

Closed
wants to merge 7 commits into from

Conversation

swift-mx
Copy link
Contributor

@swift-mx swift-mx commented May 25, 2022

Related Issues

Proposed Changes

Additional Info

Checklist

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

  • All commits have a clear commit message.
  • The PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, INTERFACE BREAKING CHANGE, CONSENSUS BREAKING, build, chore, ci, docs,perf, refactor, revert, style, test
    • area: api, chain, state, vm, data transfer, market, mempool, message, block production, multisig, networking, paychan, proving, sealing, wallet, deps
  • This PR has tests for new functionality or change in behaviour
  • If new user-facing features are introduced, clear usage guidelines and / or documentation updates should be included in https://lotus.filecoin.io or Discussion Tutorials.
  • CI is green

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.

Thanks for the PR!

One suggestion which may make it more useful in the future.

We should also switch proving deadlines to LiveSectors; AllSectors are not the right thing to use there.

cmd/lotus-miner/proving.go Outdated Show resolved Hide resolved
cmd/lotus-miner/proving.go Show resolved Hide resolved
cmd/lotus-miner/proving.go Outdated Show resolved Hide resolved
Comment on lines 324 to 363
sectorCount, err := partition.AllSectors.Count()
sectorCount, err := partition.ActiveSectors.Count()
if err != nil {
return err
}

sectorNumbers, err := partition.AllSectors.All(sectorCount)
sectorNumbers, err := partition.ActiveSectors.All(sectorCount)
if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add a flag all to this function to give the user the option to get info for AllSectors

Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe AllSectors is useless to the user

@geoff-vball
Copy link
Contributor

@swift-mx Did you push the wrong commit? None of the changes in the latest commit seem to line up with my comments. Let me know if you have any questions :)

@swift-mx
Copy link
Contributor Author

@swift-mx Did you push the wrong commit? None of the changes in the latest commit seem to line up with my comments. Let me know if you have any questions :)

The reason for this PR is that some of our sectors have expired. We want to compress the partitions. But I don't know which one should be compressed. So there is a need

@magik6k
Copy link
Contributor

magik6k commented Aug 5, 2022

This has developed some conflicts (likely after merging #8721 / #9109)

Also note that #9109 has added similar functionality, just to a different command

@swift-mx
Copy link
Contributor Author

swift-mx commented Aug 5, 2022

This has developed some conflicts (likely after merging #8721 / #9109)

Also note that #9109 has added similar functionality, just to a different command

OK, it's just different display from #9109 , i will close this pr

@swift-mx swift-mx closed this Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants