From c3538f435af8c408759d9d005e80b2f1690e0659 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Mon, 15 Jun 2020 14:14:51 -0400 Subject: [PATCH] walletdb: Make SpliWalletFilePath non-static --- src/wallet/db.cpp | 2 +- src/wallet/db.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp index d90e8e64330..f694ffc71c4 100644 --- a/src/wallet/db.cpp +++ b/src/wallet/db.cpp @@ -51,7 +51,7 @@ bool WalletDatabaseFileId::operator==(const WalletDatabaseFileId& rhs) const 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)) { // Special case for backwards compatibility: if wallet path points to an diff --git a/src/wallet/db.h b/src/wallet/db.h index 54ce144ffc4..5041a7f916b 100644 --- a/src/wallet/db.h +++ b/src/wallet/db.h @@ -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. */ 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. */ std::shared_ptr GetWalletEnv(const fs::path& wallet_path, std::string& database_filename);