From 921c1f384f8643316634f3dd30ce50efacba1ecf Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 12 Aug 2014 18:14:44 -0400 Subject: [PATCH] drop warnings. --- work.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/work.cpp b/work.cpp index 61bda958..2d01be21 100644 --- a/work.cpp +++ b/work.cpp @@ -124,6 +124,7 @@ bool AppInit3(boost::thread_group& threadGroup) { // try again if (!bitdb.Open(GetDataDir())) { // if it still fails, it probably means we can't even create the database env + string msg = strprintf(_("Error initializing wallet database environment %s!"), strDataDir); return InitError(msg); } } @@ -131,11 +132,10 @@ bool AppInit3(boost::thread_group& threadGroup) { if (filesystem::exists(GetDataDir() / strWalletFile)) { CDBEnv::VerifyResult r = bitdb.Verify(strWalletFile, CWalletDB::Recover); if (r == CDBEnv::RECOVER_OK) { - string msg = strprintf(_("Warning: wallet.dat corrupt, data salvaged!" - " Original wallet.dat saved as wallet.{timestamp}.bak in %s; if" - " your balance or transactions are incorrect you should" - " restore from a backup."), strDataDir); - InitWarning(msg); + // Warning: wallet.dat corrupt, data salvaged! + // Original wallet.dat saved as wallet.{timestamp}.bak in data dir; if + // your balance or transactions are incorrect you should + // restore from a backup. } if (r == CDBEnv::RECOVER_FAIL) { return InitError(_("wallet.dat corrupt, salvage failed")); @@ -230,8 +230,9 @@ bool AppInit3(boost::thread_group& threadGroup) { // If the loaded chain has a wrong genesis, bail out immediately // (we're likely using a testnet datadir, or the other way around). - if (!mapBlockIndex.empty() && chainActive.Genesis() == NULL) + if (!mapBlockIndex.empty() && chainActive.Genesis() == NULL) { return InitError(_("Incorrect or no genesis block found. Wrong datadir for network?")); + } // Initialize the block index (no-op if non-empty database was already loaded) if (!InitBlockIndex()) { @@ -299,9 +300,8 @@ bool AppInit3(boost::thread_group& threadGroup) { if (nLoadWalletRet == DB_CORRUPT) { strErrors << _("Error loading wallet.dat: Wallet corrupted") << "\n"; } else if (nLoadWalletRet == DB_NONCRITICAL_ERROR) { - string msg(_("Warning: error reading wallet.dat! All keys read correctly, but transaction data" - " or address book entries might be missing or incorrect.")); - InitWarning(msg); + // Warning: error reading wallet.dat! All keys read correctly, but transaction data + // or address book entries might be missing or incorrect. } else if (nLoadWalletRet == DB_TOO_NEW) { strErrors << _("Error loading wallet.dat: Wallet requires newer version of Bitcoin Core") << "\n"; } else if (nLoadWalletRet == DB_NEED_REWRITE) {