-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
miner: Command to list/remove expired sectors #7140
Conversation
20db281
to
a9bf246
Compare
Rebased to try to make CI green. |
Codecov Report
@@ Coverage Diff @@
## master #7140 +/- ##
==========================================
+ Coverage 34.78% 34.84% +0.05%
==========================================
Files 684 684
Lines 80040 80136 +96
==========================================
+ Hits 27845 27923 +78
- Misses 46522 46530 +8
- Partials 5673 5683 +10
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it does the thing
cmd/lotus-miner/sectors.go
Outdated
|
||
// toCheck is a working bitfield which will only contain terminated sectors | ||
toCheck := bitfield.New() | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for my education what's the point of having code blocks like this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally just for not leaking variables into the wider function context (which makes it easier to see when we are done with those vars)
We should make this automatic at some point, but this is at least a good tool to manage expired sectors
--show-removed
output:The 'actually remove things' output: