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
Remove reindex special case from the progress bar label #697
The head ref may contain hidden characters: "2301-gui-reindex-\u{1F456}"
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
So the only user-visible change should be changing the word "Reindex" to "Index" |
Concept ACK. As this PR touches code outside the |
It is only changing an interface that the gui uses, so I think it should be fine |
cc @ryanofsky |
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.
code-review, tested ACK fa20044
I ran src/qt/bitcoin-qt -noconnect -signet -reindex
with and without the PR, and the status message (lower-left corner) for stage 1 was as expected. I didn't try reindex-chainstate
, loadblock
, or reindex
stage 2.
if (m_node.isLoadingBlocks()) return BlockSource::DISK; | ||
if (getNumConnections() > 0) return BlockSource::NETWORK; |
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.
I like this, somehow else
following return
(or break
, continue
) doesn't seem right.
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, removed and rebased. Should be trivial to re-ACK with git range-diff |
Re-ACK faff2ba |
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.
ACK faff2ba, I have reviewed the code and it looks OK, I agree it can be merged.
post-merge re-ACK |
The user knows which option they passed to the program, so it seems overly verbose to offer the user feedback whether or not they passed
-reindex
. Treat it asDISK
, like all other cases that are treated asDISK
:-reindex-chainstate
-loadblock