-
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
Add partition info to the 'sectors status' command #7246
Conversation
6812a61
to
dbdaa32
Compare
Codecov Report
@@ Coverage Diff @@
## master #7246 +/- ##
==========================================
- Coverage 39.09% 39.08% -0.01%
==========================================
Files 610 610
Lines 64753 64809 +56
==========================================
+ Hits 25315 25333 +18
- Misses 35043 35085 +42
+ Partials 4395 4391 -4
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.
LGTM
Aliases: []string{"p"}, | ||
}, | ||
&cli.BoolFlag{ | ||
Name: "proof", |
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.
For my info is this proof of replication (was thinking it could also be latest post proof)? Couldn't find the answer easily from looking at api types because api.SectorInfo is only populated with disk reads.
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.
Since I'm probably not alone in not knowing the usage
field would benefit from explaining this: "print proof of replication for sector", or "print latest proof of spacetime for sector"
} | ||
|
||
errFound := errors.New("found") | ||
if err := mas.ForEachDeadline(func(dlIdx uint64, dl miner.Deadline) error { |
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.
Future Improvement: what is the current thinking around the lotus miner creating a persistent index from sector id to partition? It seems like this linear traversal is fairly common and potentially expensive. I'm sure big miners have this already but it would be nice to have out of the box with lotus. If we ask around maybe a mining operation would donate their code too.
dbdaa32
to
39892d4
Compare
39892d4
to
fea430a
Compare
No description provided.