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

View File

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