|
|
|
@ -507,6 +507,8 @@ bool AppInit2()
@@ -507,6 +507,8 @@ bool AppInit2()
|
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (filesystem::exists(GetDataDir() / "wallet.dat")) |
|
|
|
|
{ |
|
|
|
|
CDBEnv::VerifyResult r = bitdb.Verify("wallet.dat", CWalletDB::Recover); |
|
|
|
|
if (r == CDBEnv::RECOVER_OK) |
|
|
|
|
{ |
|
|
|
@ -518,6 +520,7 @@ bool AppInit2()
@@ -518,6 +520,7 @@ bool AppInit2()
|
|
|
|
|
} |
|
|
|
|
if (r == CDBEnv::RECOVER_FAIL) |
|
|
|
|
return InitError(_("wallet.dat corrupt, salvage failed")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// ********************************************************* Step 6: network initialization
|
|
|
|
|
|
|
|
|
|