init: Generate a new HD seed on startup
This commit is contained in:
parent
70b4ad2dcd
commit
c58dae6cda
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue