Ensure working directories are created
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
This commit is contained in:
parent
4c72d39033
commit
80b81a1f25
2 changed files with 6 additions and 3 deletions
|
@ -1487,8 +1487,10 @@ bool AppInitMain(InitInterfaces& interfaces)
|
|||
auto& consensus = chainparams.GetConsensus();
|
||||
if (g_logger->Enabled() && LogAcceptCategory(BCLog::CLAIMS))
|
||||
CLogPrint::global().setLogger(g_logger);
|
||||
auto dataDir = GetDataDir() / "claimtrie";
|
||||
TryCreateDirectories(dataDir);
|
||||
pclaimTrie = new CClaimTrie(fReindex || fReindexChainState, 0,
|
||||
(GetDataDir() / "claimtrie").string(),
|
||||
dataDir.string(),
|
||||
consensus.nNormalizedNameForkHeight,
|
||||
consensus.nOriginalClaimExpirationTime,
|
||||
consensus.nExtendedClaimExpirationTime,
|
||||
|
|
|
@ -143,8 +143,9 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha
|
|||
::ChainstateActive().InitCoinsDB(
|
||||
/* cache_size_bytes */ 1 << 23, /* in_memory */ true, /* should_wipe */ false);
|
||||
auto& consensus = chainparams.GetConsensus();
|
||||
pclaimTrie = new CClaimTrie(true, 0,
|
||||
(GetDataDir() / "claimtrie").string(),
|
||||
auto dataDir = GetDataDir() / "claimtrie";
|
||||
TryCreateDirectories(dataDir);
|
||||
pclaimTrie = new CClaimTrie(true, 0, dataDir.string(),
|
||||
consensus.nNormalizedNameForkHeight,
|
||||
consensus.nOriginalClaimExpirationTime,
|
||||
consensus.nExtendedClaimExpirationTime,
|
||||
|
|
Loading…
Reference in a new issue