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
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-loadblockThe following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
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.
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.
For reference:
-reindex-chainstate remains unchanged:

-loadblock remains unchanged:

-reindex stage 2 remains unchanged:

-reindex stage 1 (master):

-reindex stage 1 (this pull):

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?
155- return BlockSource::DISK;
156- else if (getNumConnections() > 0)
157- return BlockSource::NETWORK;
158-
159+ if (m_node.isLoadingBlocks()) return BlockSource::DISK;
160+ if (getNumConnections() > 0) return BlockSource::NETWORK;
else following return (or break, continue) doesn’t seem right.
code-review, tested ACK fa200442946437f6de8aec95487ccbb541cc485b
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.
ACK fa200442946437f6de8aec95487ccbb541cc485b
Nit: Maybe remove the one remaining unnecessary enum use for BlockSource?