Browse Source
init: Generate a new HD seed on startup
pull/4/head
Jack Grigg
6 years ago
No known key found for this signature in database
GPG Key ID: 1B8D649257DB0829
1 changed files with
6 additions and
0 deletions
-
src/init.cpp
|
|
@ -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
|
|
|
|