Remove fAllowReuse from GetKeyFromPool.

With the GUI password fix this was always false.
This commit is contained in:
Gregory Maxwell
2013-08-23 12:54:50 -07:00
parent 20469d83dd
commit 71ac5052d8
6 changed files with 9 additions and 14 deletions

View File

@@ -893,7 +893,7 @@ bool AppInit2(boost::thread_group& threadGroup)
RandAddSeedPerfmon();
CPubKey newDefaultKey;
if (pwalletMain->GetKeyFromPool(newDefaultKey, false)) {
if (pwalletMain->GetKeyFromPool(newDefaultKey)) {
pwalletMain->SetDefaultKey(newDefaultKey);
if (!pwalletMain->SetAddressBook(pwalletMain->vchDefaultKey.GetID(), "", "receive"))
strErrors << _("Cannot write default address") << "\n";