7#include <chainparams.h>
17 const std::string &chainName)
18 : BasicTestingSetup(chainName) {
22 sep += fs::path::preferred_separator;
25 m_cwd = fs::current_path();
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.
std::unique_ptr< WalletClient > MakeWalletClient(Chain &chain, ArgsManager &args)
Return implementation of ChainClient interface for a wallet client.
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)
std::map< std::string, SettingsValue > forced_settings
Map of setting name to forced setting value.