Skip to content

Commit c3538f4

Browse files
committed
walletdb: Make SpliWalletFilePath non-static
1 parent 1c86ed4 commit c3538f4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/wallet/db.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ bool WalletDatabaseFileId::operator==(const WalletDatabaseFileId& rhs) const
5151
return memcmp(value, &rhs.value, sizeof(value)) == 0;
5252
}
5353

54-
static void SplitWalletPath(const fs::path& wallet_path, fs::path& env_directory, std::string& database_filename)
54+
void SplitWalletPath(const fs::path& wallet_path, fs::path& env_directory, std::string& database_filename)
5555
{
5656
if (fs::is_regular_file(wallet_path)) {
5757
// Special case for backwards compatibility: if wallet path points to an

src/wallet/db.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ bool IsWalletLoaded(const fs::path& wallet_path);
9191

9292
/** Given a wallet directory path or legacy file path, return path to main data file in the wallet database. */
9393
fs::path WalletDataFilePath(const fs::path& wallet_path);
94+
void SplitWalletPath(const fs::path& wallet_path, fs::path& env_directory, std::string& database_filename);
9495

9596
/** Get BerkeleyEnvironment and database filename given a wallet path. */
9697
std::shared_ptr<BerkeleyEnvironment> GetWalletEnv(const fs::path& wallet_path, std::string& database_filename);

0 commit comments

Comments
 (0)