7#include <chainparams.h>
22 sep += fs::path::preferred_separator;
25 m_cwd = fs::current_path();
46 settings.forced_settings.erase(
"walletdir");
48 fs::current_path(
m_cwd);
#define Assert(val)
Identity function.
void ForceSetArg(const std::string &strArg, const std::string &strValue)
fs::path GetDataDirNet() const
Get data directory path with appended network identifier.
void LockSettings(Fn &&fn)
Access settings with lock held.
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...
static bool create_directories(const std::filesystem::path &p)
Create directory (and if necessary its parents), unless the leaf directory already exists or is a sym...
static std::string PathToString(const path &path)
Convert path object to byte string.
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
std::unique_ptr< interfaces::WalletClient > m_wallet_client
InitWalletDirTestingSetup(const std::string &chainName=CBaseChainParams::MAIN)
std::map< std::string, fs::path > m_walletdir_path_cases
~InitWalletDirTestingSetup()
void SetWalletDir(const fs::path &walletdir_path)