change nEnd to index (might break the progress bar on wallet creation, should test)

Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
Pasta 2019-09-18 17:35:44 -05:00
parent cd5a12f9fb
commit 05ad6d2ecb

View File

@ -4352,7 +4352,7 @@ bool CWallet::TopUpKeyPool(unsigned int kpSize)
setInternalKeyPool.size() + setExternalKeyPool.size(), setInternalKeyPool.size()); setInternalKeyPool.size() + setExternalKeyPool.size(), setInternalKeyPool.size());
} }
double dProgress = 100.f * nEnd / (nTargetSize + 1); double dProgress = 100.f * index / (nTargetSize + 1);
std::string strMsg = strprintf(_("Loading wallet... (%3.2f %%)"), dProgress); std::string strMsg = strprintf(_("Loading wallet... (%3.2f %%)"), dProgress);
uiInterface.InitMessage(strMsg); uiInterface.InitMessage(strMsg);
} }