aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/db.h
diff options
context:
space:
mode:
authorChun Kuan Lee <ken2812221@gmail.com>2018-10-23 13:26:27 +0800
committerChun Kuan Lee <ken2812221@gmail.com>2018-11-06 08:28:02 +0800
commit15c93f075a881deb3ad7b1dd8a4516a9b06e5e11 (patch)
tree9bbeeba05f637480c344d82b009488869e005e3f /src/wallet/db.h
parentc456fbd8dfcc748e5ec9feaa57ec0f2900f99cde (diff)
downloadbitcoin-15c93f075a881deb3ad7b1dd8a4516a9b06e5e11.tar.xz
wallet: Add trailing wallet.dat when detecting duplicate wallet if it's a directory.
Diffstat (limited to 'src/wallet/db.h')
-rw-r--r--src/wallet/db.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/db.h b/src/wallet/db.h
index e9f89ac6cb..9832094ccb 100644
--- a/src/wallet/db.h
+++ b/src/wallet/db.h
@@ -97,6 +97,9 @@ public:
}
};
+/** Return whether a wallet database is currently loaded. */
+bool IsWalletLoaded(const fs::path& wallet_path);
+
/** Get BerkeleyEnvironment and database filename given a wallet path. */
BerkeleyEnvironment* GetWalletEnv(const fs::path& wallet_path, std::string& database_filename);