Skip to content

Commit

Permalink
make database init messages more valuable
Browse files Browse the repository at this point in the history
- it was bad, that quite some messages were just talking about a database,
  I think a user should know, if we are talking about wallet db or
  block/coin db
- also adds a new init message for "Verifying block database integrity..."
  • Loading branch information
Philip Kaufmann committed Jan 13, 2013
1 parent 6213b25 commit 06494ca
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,9 +581,9 @@ bool AppInit2()

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()))
{
Expand Down Expand Up @@ -752,10 +752,12 @@ bool AppInit2()
pblocktree->WriteReindexing(true);

if (!LoadBlockIndex())
return InitError(_("Error loading block/coin databases"));
return InitError(_("Error loading block database"));

uiInterface.InitMessage(_("Verifying block database integrity..."));

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
// requested to kill bitcoin-qt during the last operation. If so, exit.
Expand Down

0 comments on commit 06494ca

Please sign in to comment.