Ensure working directories are created
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
This commit is contained in:
parent
3e51253853
commit
0bc44cac0e
2 changed files with 6 additions and 3 deletions
|
@ -1458,8 +1458,10 @@ bool AppInitMain()
|
|||
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,
|
||||
|
|
|
@ -148,8 +148,9 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha
|
|||
pcoinsdbview.reset(new CCoinsViewDB(1 << 23, true));
|
||||
pcoinsTip.reset(new CCoinsViewCache(pcoinsdbview.get()));
|
||||
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