init: Generate a new HD seed on startup

This commit is contained in:
Jack Grigg 2018-08-29 00:37:05 +01:00
parent 70b4ad2dcd
commit c58dae6cda
No known key found for this signature in database
GPG Key ID: 1B8D649257DB0829
1 changed files with 6 additions and 0 deletions

View File

@ -1626,6 +1626,12 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
pwalletMain->SetMaxVersion(nMaxVersion); pwalletMain->SetMaxVersion(nMaxVersion);
} }
if (!pwalletMain->HaveHDSeed())
{
// generate a new HD seed
pwalletMain->GenerateNewSeed();
}
if (fFirstRun) if (fFirstRun)
{ {
// Create new keyUser and set as default key // Create new keyUser and set as default key