diff options
author | Chun Kuan Lee <ken2812221@gmail.com> | 2018-10-23 13:26:27 +0800 |
---|---|---|
committer | Chun Kuan Lee <ken2812221@gmail.com> | 2018-11-06 08:28:02 +0800 |
commit | 15c93f075a881deb3ad7b1dd8a4516a9b06e5e11 (patch) | |
tree | 9bbeeba05f637480c344d82b009488869e005e3f /src/wallet/db.h | |
parent | c456fbd8dfcc748e5ec9feaa57ec0f2900f99cde (diff) |
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.h | 3 |
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); |