diff options
| author | Chun Kuan Lee <[email protected]> | 2018-10-23 13:26:27 +0800 |
|---|---|---|
| committer | Chun Kuan Lee <[email protected]> | 2018-11-06 08:28:02 +0800 |
| commit | 15c93f075a881deb3ad7b1dd8a4516a9b06e5e11 (patch) | |
| tree | 9bbeeba05f637480c344d82b009488869e005e3f /src/wallet/db.h | |
| parent | Refactor: Move m_db pointers into BerkeleyDatabase (diff) | |
| download | discoin-15c93f075a881deb3ad7b1dd8a4516a9b06e5e11.tar.xz discoin-15c93f075a881deb3ad7b1dd8a4516a9b06e5e11.zip | |
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 e9f89ac6c..9832094cc 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); |