diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2018-03-11 12:42:02 +0800 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2018-03-20 09:33:17 +0700 |
commit | a1926362ecb3c354ae338ef7d7020daf78f980c9 (patch) | |
tree | 9be5d4ea2d46e0c8624b74774ab555035120ea58 /src/txdb.cpp | |
parent | f38e4fdb06406f9a1a2562836fab523eb75b5090 (diff) |
-blocksdir: keep blockindex leveldb database in datadir
Diffstat (limited to 'src/txdb.cpp')
-rw-r--r-- | src/txdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txdb.cpp b/src/txdb.cpp index f6d60411b4..4a2c321885 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -147,7 +147,7 @@ size_t CCoinsViewDB::EstimateSize() const return db.EstimateSize(DB_COIN, (char)(DB_COIN+1)); } -CBlockTreeDB::CBlockTreeDB(size_t nCacheSize, bool fMemory, bool fWipe) : CDBWrapper(GetBlocksDir() / "index", nCacheSize, fMemory, fWipe) { +CBlockTreeDB::CBlockTreeDB(size_t nCacheSize, bool fMemory, bool fWipe) : CDBWrapper(gArgs.IsArgSet("-blocksdir") ? GetDataDir() / "blocks" / "index" : GetBlocksDir() / "index", nCacheSize, fMemory, fWipe) { } bool CBlockTreeDB::ReadBlockFileInfo(int nFile, CBlockFileInfo &info) { |