mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
walletdb: Make SpliWalletFilePath non-static
This commit is contained in:
@@ -51,7 +51,7 @@ bool WalletDatabaseFileId::operator==(const WalletDatabaseFileId& rhs) const
|
|||||||
return memcmp(value, &rhs.value, sizeof(value)) == 0;
|
return memcmp(value, &rhs.value, sizeof(value)) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SplitWalletPath(const fs::path& wallet_path, fs::path& env_directory, std::string& database_filename)
|
void SplitWalletPath(const fs::path& wallet_path, fs::path& env_directory, std::string& database_filename)
|
||||||
{
|
{
|
||||||
if (fs::is_regular_file(wallet_path)) {
|
if (fs::is_regular_file(wallet_path)) {
|
||||||
// Special case for backwards compatibility: if wallet path points to an
|
// Special case for backwards compatibility: if wallet path points to an
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ bool IsWalletLoaded(const fs::path& wallet_path);
|
|||||||
|
|
||||||
/** Given a wallet directory path or legacy file path, return path to main data file in the wallet database. */
|
/** Given a wallet directory path or legacy file path, return path to main data file in the wallet database. */
|
||||||
fs::path WalletDataFilePath(const fs::path& wallet_path);
|
fs::path WalletDataFilePath(const fs::path& wallet_path);
|
||||||
|
void SplitWalletPath(const fs::path& wallet_path, fs::path& env_directory, std::string& database_filename);
|
||||||
|
|
||||||
/** Get BerkeleyEnvironment and database filename given a wallet path. */
|
/** Get BerkeleyEnvironment and database filename given a wallet path. */
|
||||||
std::shared_ptr<BerkeleyEnvironment> GetWalletEnv(const fs::path& wallet_path, std::string& database_filename);
|
std::shared_ptr<BerkeleyEnvironment> GetWalletEnv(const fs::path& wallet_path, std::string& database_filename);
|
||||||
|
|||||||
Reference in New Issue
Block a user