Fix progress estimate for HUSH at startup

This commit is contained in:
Duke
2023-04-12 10:08:09 -04:00
parent 852f747cbf
commit 053e9156a7

View File

@@ -5960,7 +5960,7 @@ bool static LoadBlockIndexDB()
PruneBlockIndexCandidates();
double progress;
if ( SMART_CHAIN_SYMBOL[0] == 0 ) {
if ( ishush3 ) {
progress = Checkpoints::GuessVerificationProgress(chainparams.Checkpoints(), chainActive.LastTip());
} else {
int32_t longestchain = hush_longestchain();