refactor: Pass wallet database into CWallet::Create

No changes in behavior
This commit is contained in:
Russell Yanofsky
2020-08-04 20:45:28 -04:00
parent 3c815cfe54
commit 8b5e7297c0
8 changed files with 27 additions and 25 deletions

View File

@@ -23,11 +23,3 @@ void SplitWalletPath(const fs::path& wallet_path, fs::path& env_directory, std::
database_filename = "wallet.dat";
}
}
fs::path WalletDataFilePath(const fs::path& wallet_path)
{
fs::path env_directory;
std::string database_filename;
SplitWalletPath(wallet_path, env_directory, database_filename);
return env_directory / database_filename;
}