mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Default walletdir is wallets/ if it exists
This commit is contained in:
@@ -17,6 +17,10 @@ fs::path GetWalletDir()
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
path = GetDataDir();
|
path = GetDataDir();
|
||||||
|
// If a wallets directory exists, use that, otherwise default to GetDataDir
|
||||||
|
if (fs::is_directory(path / "wallets")) {
|
||||||
|
path /= "wallets";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return path;
|
return path;
|
||||||
|
|||||||
Reference in New Issue
Block a user