Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletutil.cpp
Show All 23 Lines | if (gArgs.IsArgSet("-walletdir")) { | ||||
if (fs::is_directory(path / "wallets")) { | if (fs::is_directory(path / "wallets")) { | ||||
path /= "wallets"; | path /= "wallets"; | ||||
} | } | ||||
} | } | ||||
return path; | return path; | ||||
} | } | ||||
static bool IsBerkeleyBtree(const fs::path &path) { | bool IsBerkeleyBtree(const fs::path &path) { | ||||
if (!fs::exists(path)) { | if (!fs::exists(path)) { | ||||
return false; | return false; | ||||
} | } | ||||
// A Berkeley DB Btree file has at least 4K. | // A Berkeley DB Btree file has at least 4K. | ||||
// This check also prevents opening lock files. | // This check also prevents opening lock files. | ||||
boost::system::error_code ec; | boost::system::error_code ec; | ||||
auto size = fs::file_size(path, ec); | auto size = fs::file_size(path, ec); | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |