Merge pull request #2172 from Diapolo/init_messages
make database init messages more valuable
This commit is contained in:
commit
c83c3cbe97
10
src/init.cpp
10
src/init.cpp
@ -581,9 +581,9 @@ bool AppInit2()
|
|||||||
|
|
||||||
int64 nStart;
|
int64 nStart;
|
||||||
|
|
||||||
// ********************************************************* Step 5: verify database integrity
|
// ********************************************************* Step 5: verify wallet database integrity
|
||||||
|
|
||||||
uiInterface.InitMessage(_("Verifying database integrity..."));
|
uiInterface.InitMessage(_("Verifying wallet integrity..."));
|
||||||
|
|
||||||
if (!bitdb.Open(GetDataDir()))
|
if (!bitdb.Open(GetDataDir()))
|
||||||
{
|
{
|
||||||
@ -779,10 +779,12 @@ bool AppInit2()
|
|||||||
pblocktree->WriteReindexing(true);
|
pblocktree->WriteReindexing(true);
|
||||||
|
|
||||||
if (!LoadBlockIndex())
|
if (!LoadBlockIndex())
|
||||||
return InitError(_("Error loading block/coin databases"));
|
return InitError(_("Error loading block database"));
|
||||||
|
|
||||||
|
uiInterface.InitMessage(_("Verifying block database integrity..."));
|
||||||
|
|
||||||
if (!VerifyDB())
|
if (!VerifyDB())
|
||||||
return InitError(_("Corrupted database detected. Please restart the client with -reindex."));
|
return InitError(_("Corrupted block database detected. Please restart the client with -reindex."));
|
||||||
|
|
||||||
// as LoadBlockIndex can take several minutes, it's possible the user
|
// as LoadBlockIndex can take several minutes, it's possible the user
|
||||||
// requested to kill bitcoin-qt during the last operation. If so, exit.
|
// requested to kill bitcoin-qt during the last operation. If so, exit.
|
||||||
|
Loading…
Reference in New Issue
Block a user