mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
Default walletdir is wallets/ if it exists
This commit is contained in:
parent
d9878890e4
commit
9587a9c12b
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,10 @@ fs::path GetWalletDir()
|
|||
}
|
||||
} else {
|
||||
path = GetDataDir();
|
||||
// If a wallets directory exists, use that, otherwise default to GetDataDir
|
||||
if (fs::is_directory(path / "wallets")) {
|
||||
path /= "wallets";
|
||||
}
|
||||
}
|
||||
|
||||
return path;
|
||||
|
|
Loading…
Add table
Reference in a new issue