Remove dead code for walletFile check
SplitWalletPath() garanties the walletFile is a plain filename without a directory.
This commit is contained in:
parent
56376f3365
commit
4f65af97b4
1 changed files with 0 additions and 7 deletions
|
@ -407,13 +407,6 @@ bool BerkeleyBatch::VerifyEnvironment(const fs::path& file_path, std::string& er
|
||||||
LogPrintf("Using BerkeleyDB version %s\n", DbEnv::version(nullptr, nullptr, nullptr));
|
LogPrintf("Using BerkeleyDB version %s\n", DbEnv::version(nullptr, nullptr, nullptr));
|
||||||
LogPrintf("Using wallet %s\n", file_path.string());
|
LogPrintf("Using wallet %s\n", file_path.string());
|
||||||
|
|
||||||
// Wallet file must be a plain filename without a directory
|
|
||||||
if (walletFile != fs::basename(walletFile) + fs::extension(walletFile))
|
|
||||||
{
|
|
||||||
errorStr = strprintf(_("Wallet %s resides outside wallet directory %s"), walletFile, walletDir.string());
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!env->Open(true /* retry */)) {
|
if (!env->Open(true /* retry */)) {
|
||||||
errorStr = strprintf(_("Error initializing wallet database environment %s!"), walletDir);
|
errorStr = strprintf(_("Error initializing wallet database environment %s!"), walletDir);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue