diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2022-08-16 23:32:55 -0400 |
---|---|---|
committer | Ryan Ofsky <ryan@ofsky.org> | 2023-02-10 04:39:11 -0400 |
commit | 0352258148c51572426666d337c7b28d0033376c (patch) | |
tree | fac9e1484d8c25cfa64b1869c866e82b371c10b3 /src/txdb.h | |
parent | c00fa1a7341d3f47f992e0beb043da655cbca777 (diff) |
refactor, txdb: Use DBParams struct in CBlockTreeDB
Use DBParams struct to remove ArgsManager uses from txdb.
To reduce size of this commit, this moves references to gArgs variable out of
txdb.cpp to calling code in chainstate.cpp. But these moves are temporary. The
gArgs references in chainstate.cpp are moved out to calling code in init.cpp in
later commits.
This commit does not change behavior.
Diffstat (limited to 'src/txdb.h')
-rw-r--r-- | src/txdb.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/txdb.h b/src/txdb.h index bfbfab57a4..8a876349fb 100644 --- a/src/txdb.h +++ b/src/txdb.h @@ -86,8 +86,7 @@ public: class CBlockTreeDB : public CDBWrapper { public: - explicit CBlockTreeDB(size_t nCacheSize, bool fMemory = false, bool fWipe = false); - + using CDBWrapper::CDBWrapper; bool WriteBatchSync(const std::vector<std::pair<int, const CBlockFileInfo*> >& fileInfo, int nLastFile, const std::vector<const CBlockIndex*>& blockinfo); bool ReadBlockFileInfo(int nFile, CBlockFileInfo &info); bool ReadLastBlockFile(int &nFile); |