mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-26 15:36:19 +01:00
Cleanups for walletdir PR
This commit is contained in:
@@ -194,7 +194,10 @@ bool VerifyWallets()
|
||||
}
|
||||
|
||||
if (gArgs.IsArgSet("-walletdir") && !fs::is_directory(GetWalletDir())) {
|
||||
return InitError(strprintf(_("Error: Specified wallet directory \"%s\" does not exist."), gArgs.GetArg("-walletdir", "").c_str()));
|
||||
if (fs::exists(fs::system_complete(gArgs.GetArg("-walletdir", "")))) {
|
||||
return InitError(strprintf(_("Specified -walletdir \"%s\" is not a directory"), gArgs.GetArg("-walletdir", "").c_str()));
|
||||
}
|
||||
return InitError(strprintf(_("Specified -walletdir \"%s\" does not exist"), gArgs.GetArg("-walletdir", "").c_str()));
|
||||
}
|
||||
|
||||
LogPrintf("Using wallet directory %s\n", GetWalletDir().string());
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include "wallet/walletutil.h"
|
||||
#include <wallet/walletutil.h>
|
||||
|
||||
fs::path GetWalletDir()
|
||||
{
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
#ifndef BITCOIN_WALLET_UTIL_H
|
||||
#define BITCOIN_WALLET_UTIL_H
|
||||
|
||||
#include "util.h"
|
||||
#include <chainparamsbase.h>
|
||||
#include <util.h>
|
||||
|
||||
//! Get the path of the wallet directory.
|
||||
fs::path GetWalletDir();
|
||||
|
||||
Reference in New Issue
Block a user