Skip to content

Commit c2bb391

Browse files
committed
util: Simplify path argument for CBlockTreeDB ctor
This commit does not change behavior as GetBlocksDir() with unset "-blocksdir" returns the same path.
1 parent 7b701fe commit c2bb391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/txdb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ size_t CCoinsViewDB::EstimateSize() const
145145
return db.EstimateSize(DB_COIN, (char)(DB_COIN+1));
146146
}
147147

148-
CBlockTreeDB::CBlockTreeDB(size_t nCacheSize, bool fMemory, bool fWipe) : CDBWrapper(gArgs.IsArgSet("-blocksdir") ? GetDataDir() / "blocks" / "index" : GetBlocksDir() / "index", nCacheSize, fMemory, fWipe) {
148+
CBlockTreeDB::CBlockTreeDB(size_t nCacheSize, bool fMemory, bool fWipe) : CDBWrapper(GetDataDir() / "blocks" / "index", nCacheSize, fMemory, fWipe) {
149149
}
150150

151151
bool CBlockTreeDB::ReadBlockFileInfo(int nFile, CBlockFileInfo &info) {

0 commit comments

Comments
 (0)