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

Remove reindex special case from the progress bar label #697

Merged
merged 1 commit into from Feb 7, 2023
Merged

Remove reindex special case from the progress bar label #697

merged 1 commit into from Feb 7, 2023

Conversation

maflcko
Copy link
Contributor

@maflcko maflcko commented Jan 17, 2023

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 as DISK, like all other cases that are treated as DISK:

  • -reindex-chainstate
  • -loadblock

@DrahtBot
Copy link
Contributor

DrahtBot commented Jan 17, 2023

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK john-moffett, hebasto
Stale ACK LarryRuane

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

Reviewers, 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.

@maflcko
Copy link
Contributor Author

maflcko commented Jan 17, 2023

For reference:

  • -reindex-chainstate remains unchanged:
    rcs

  • -loadblock remains unchanged:
    lblk

  • -reindex stage 2 remains unchanged:
    reindex_same_2

  • -reindex stage 1 (master):
    reindex_master

  • -reindex stage 1 (this pull):
    reindex_1_pull

@maflcko maflcko added the UI All about "look and feel" label Jan 18, 2023
@maflcko
Copy link
Contributor Author

maflcko commented Jan 28, 2023

So the only user-visible change should be changing the word "Reindex" to "Index"

@hebasto
Copy link
Member

hebasto commented Feb 2, 2023

Concept ACK.

As this PR touches code outside the src/qt directory, i.e., src/interfaces/node.h and src/node/interfaces.cpp, should it be moved to the main repo for a broader reviewing?

@maflcko
Copy link
Contributor Author

maflcko commented Feb 2, 2023

It is only changing an interface that the gui uses, so I think it should be fine

@hebasto
Copy link
Member

hebasto commented Feb 2, 2023

cc @ryanofsky

Copy link
Contributor

@LarryRuane LarryRuane left a 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.

Comment on lines +151 to +152
if (m_node.isLoadingBlocks()) return BlockSource::DISK;
if (getNumConnections() > 0) return BlockSource::NETWORK;
Copy link
Contributor

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.

Copy link
Contributor

@john-moffett john-moffett left a comment

Choose a reason for hiding this comment

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

ACK fa20044

Nit: Maybe remove the one remaining unnecessary enum use for BlockSource?

enum BlockSource blockSource = clientModel->getBlockSource();

@maflcko
Copy link
Contributor Author

maflcko commented Feb 7, 2023

Thanks, removed and rebased. Should be trivial to re-ACK with git range-diff

@john-moffett
Copy link
Contributor

Re-ACK faff2ba

Copy link
Member

@hebasto hebasto left a 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.

@maflcko maflcko merged commit 1bcabe6 into bitcoin-core:master Feb 7, 2023
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Feb 7, 2023
@LarryRuane
Copy link
Contributor

post-merge re-ACK

@maflcko maflcko deleted the 2301-gui-reindex-👖 branch February 8, 2023 10:57
@bitcoin-core bitcoin-core locked and limited conversation to collaborators Feb 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
UI All about "look and feel"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants