Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Remove redundant reindex check
The check for whether the block tree db has been wiped before calling NeedsRedownload() is confusing. The boolean is set in case of a reindex. It was originally introduced to guard NeedsRedownload in case of a reindex in bitcoin#21009. However NeedsRedownload already returns early if the chain's tip is not loaded. Since that is the case during a reindex, the pre-check is redundant.
- Loading branch information