Only use dataDir in CEvoDB when not in-memory (#2291)

This commit is contained in:
Alexander Block 2018-09-14 17:53:09 +02:00 committed by UdjinM6
parent 8a878bfcfd
commit 6adc236d0e

View File

@ -7,7 +7,7 @@
CEvoDB* evoDb;
CEvoDB::CEvoDB(size_t nCacheSize, bool fMemory, bool fWipe) :
db(GetDataDir() / "evodb", nCacheSize, fMemory, fWipe),
db(fMemory ? "" : (GetDataDir() / "evodb"), nCacheSize, fMemory, fWipe),
dbTransaction(db)
{
}