Skip to content

Commit 1ce8799

Browse files
committed
[Keypool] Output different message if keypool calculation > 100%
1 parent 786ddb6 commit 1ce8799

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/wallet/wallet.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4698,7 +4698,11 @@ bool CWallet::TopUpKeyPoolCombo(unsigned int kpSize, bool fIncreaseSize)
46984698
}
46994699

47004700
double dProgress = 100.f * nEnd / (nTargetSize + 1);
4701-
std::string strMsg = strprintf(_("Loading wallet... (%3.2f %%)"), dProgress);
4701+
std::string strMsg = "";
4702+
if (dProgress <= 100)
4703+
strMsg = strprintf(_("Loading wallet... (%3.2f %%)"), dProgress);
4704+
else
4705+
strMsg = strprintf(_("Increasing keypool... (%d)"),amountExternal);
47024706
uiInterface.InitMessage(strMsg);
47034707
}
47044708
}

0 commit comments

Comments
 (0)