mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
db: add StoragePath to CDBWrapper/CCoinsViewDB
This is used in subsequent commits. It allows us to clean up UTXO snapshot chainstate after background validation completes.
This commit is contained in:
parent
29d540b7ad
commit
d14bebf100
3 changed files with 23 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ static leveldb::Options GetOptions(size_t nCacheSize)
|
|||
}
|
||||
|
||||
CDBWrapper::CDBWrapper(const fs::path& path, size_t nCacheSize, bool fMemory, bool fWipe, bool obfuscate)
|
||||
: m_name{fs::PathToString(path.stem())}
|
||||
: m_name{fs::PathToString(path.stem())}, m_path{path}, m_is_memory{fMemory}
|
||||
{
|
||||
penv = nullptr;
|
||||
readoptions.verify_checksums = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue