Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/init.cpp
Show First 20 Lines • Show All 276 Lines • ▼ Show 20 Lines | if (gArgs.IsArgSet("-walletdir")) { | ||||
wallet_dir.string())); | wallet_dir.string())); | ||||
return false; | return false; | ||||
} | } | ||||
gArgs.ForceSetArg("-walletdir", canonical_wallet_dir.string()); | gArgs.ForceSetArg("-walletdir", canonical_wallet_dir.string()); | ||||
} | } | ||||
LogPrintf("Using wallet directory %s\n", GetWalletDir().string()); | LogPrintf("Using wallet directory %s\n", GetWalletDir().string()); | ||||
uiInterface.InitMessage(_("Verifying wallet(s)...")); | chain.initMessage(_("Verifying wallet(s)...")); | ||||
// Parameter interaction code should have thrown an error if -salvagewallet | // Parameter interaction code should have thrown an error if -salvagewallet | ||||
// was enabled with more than wallet file, so the wallet_files size check | // was enabled with more than wallet file, so the wallet_files size check | ||||
// here should have no effect. | // here should have no effect. | ||||
bool salvage_wallet = | bool salvage_wallet = | ||||
gArgs.GetBoolArg("-salvagewallet", false) && wallet_files.size() <= 1; | gArgs.GetBoolArg("-salvagewallet", false) && wallet_files.size() <= 1; | ||||
// Keep track of each wallet absolute path to detect duplicates. | // Keep track of each wallet absolute path to detect duplicates. | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |