File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 8
8
#include < util/system.h>
9
9
10
10
bool ExistsBerkeleyDatabase (const fs::path& path);
11
+ bool ExistsSQLiteDatabase (const fs::path& path);
11
12
12
13
fs::path GetWalletDir ()
13
14
{
@@ -48,7 +49,8 @@ std::vector<fs::path> ListWalletDir()
48
49
// This can be replaced by boost::filesystem::lexically_relative once boost is bumped to 1.60.
49
50
const fs::path path = it->path ().string ().substr (offset);
50
51
51
- if (it->status ().type () == fs::directory_file && ExistsBerkeleyDatabase (it->path ())) {
52
+ if (it->status ().type () == fs::directory_file &&
53
+ (ExistsBerkeleyDatabase (it->path ()) || ExistsSQLiteDatabase (it->path ()))) {
52
54
// Found a directory which contains wallet.dat btree file, add it as a wallet.
53
55
paths.emplace_back (path);
54
56
} else if (it.level () == 0 && it->symlink_status ().type () == fs::regular_file && ExistsBerkeleyDatabase (it->path ())) {
You can’t perform that action at this time.
0 commit comments