-
Notifications
You must be signed in to change notification settings - Fork 747
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
Show correct total validator count during validator recovery #6153
Conversation
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.
Thanks for the contribution, nice catch!
Just a nitpick, thought it would be better to have the count as count - 1
, since the count displayed starts from 0. So, when we do:
lighthouse account validator recover --first-index 4 --count 2
, it will show:
0/1
1/1
instead of:
0/2
1/2
Edit: other than that, tested and confirmed the UX shown as intended and it's good
Hey @chong-he, good point. But then actually, I would argue for
which might be more intuitive to users, as people usually index starting at 1 in non-code contexts. But that is a matter of taste I guess. |
Good point, that would be:
I have commented above as well. I think this is good to go |
Co-authored-by: chonghe <44791194+chong-he@users.noreply.github.com>
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at b4a7560 |
Issue Addressed
A small one I found just now: The progress indicator displayed during
lighthouse account validator recover
would show something like0/4294967276 Index: 40
whencount < first_index
.Proposed Changes
Simply display the count there instead of subtracting the first index.
Additional Info
None.