Changeset View
Changeset View
Standalone View
Standalone View
src/util.cpp
Show First 20 Lines • Show All 800 Lines • ▼ Show 20 Lines | const fs::path &GetDataDir(bool fNetSpecific) { | ||||
} | } | ||||
if (fNetSpecific) { | if (fNetSpecific) { | ||||
path /= BaseParams().DataDir(); | path /= BaseParams().DataDir(); | ||||
} | } | ||||
if (fs::create_directories(path)) { | if (fs::create_directories(path)) { | ||||
// This is the first run, create wallets subdirectory too | // This is the first run, create wallets subdirectory too | ||||
// | |||||
// TODO: this is an ugly way to create the wallets/ directory and | |||||
// really shouldn't be done here. Once this is fixed, please | |||||
// also remove the corresponding line in bitcoind.cpp AppInit. | |||||
// See more info at: | |||||
// https://reviews.bitcoinabc.org/D3312 | |||||
fs::create_directories(path / "wallets"); | fs::create_directories(path / "wallets"); | ||||
} | } | ||||
return path; | return path; | ||||
} | } | ||||
void ClearDatadirCache() { | void ClearDatadirCache() { | ||||
LOCK(csPathCached); | LOCK(csPathCached); | ||||
▲ Show 20 Lines • Show All 362 Lines • Show Last 20 Lines |