mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-19 22:50:44 +02:00
wallet: Avoid logging no_such_file_or_directory error
This commit is contained in:
parent
bdd7217f2c
commit
70c1cf8c1c
@ -31,6 +31,8 @@ fs::path GetWalletDir()
|
|||||||
|
|
||||||
static bool IsBerkeleyBtree(const fs::path& path)
|
static bool IsBerkeleyBtree(const fs::path& path)
|
||||||
{
|
{
|
||||||
|
if (!fs::exists(path)) 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user