fix #942
This commit is contained in:
parent
41b4c1676d
commit
8e16ef3c61
@ -36,6 +36,7 @@ public:
|
||||
mw::Header::CPtr GetBestHeader() const noexcept { return m_pHeader; }
|
||||
|
||||
const std::shared_ptr<mw::DBWrapper>& GetDatabase() const noexcept { return m_pDatabase; }
|
||||
void SetDatabase(const std::shared_ptr<mw::DBWrapper>& pDBWrapper) noexcept { m_pDatabase = pDBWrapper; }
|
||||
|
||||
virtual bool IsCache() const noexcept = 0;
|
||||
|
||||
|
||||
@ -53,6 +53,7 @@ void CCoinsViewDB::ResizeCache(size_t new_cache_size)
|
||||
m_db.reset();
|
||||
m_db = MakeUnique<CDBWrapper>(
|
||||
m_ldb_path, new_cache_size, m_is_memory, /*fWipe*/ false, /*obfuscate*/ true);
|
||||
GetMWEBView()->SetDatabase(std::make_shared<MWEB::DBWrapper>(GetDB()));
|
||||
}
|
||||
|
||||
bool CCoinsViewDB::GetCoin(const COutPoint &outpoint, Coin &coin) const {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user