mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Merge pull request #179 from UdjinM6/v0.11.2.x_fix_keypool_progress
(v0.11.2.x) fix %% calculation on keypool generation
This commit is contained in:
commit
5d94fc5761
@ -2466,7 +2466,7 @@ bool CWallet::TopUpKeyPool(unsigned int kpSize)
|
|||||||
throw runtime_error("TopUpKeyPool() : writing generated key failed");
|
throw runtime_error("TopUpKeyPool() : writing generated key failed");
|
||||||
setKeyPool.insert(nEnd);
|
setKeyPool.insert(nEnd);
|
||||||
LogPrintf("keypool added key %d, size=%u\n", nEnd, setKeyPool.size());
|
LogPrintf("keypool added key %d, size=%u\n", nEnd, setKeyPool.size());
|
||||||
double dProgress = nEnd / 10.f;
|
double dProgress = 100.f * nEnd / (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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user