pull/944/head
Loshan T 2 months ago
parent 41b4c1676d
commit 8e16ef3c61
No known key found for this signature in database
GPG Key ID: 3B2A6315CD51A673

@ -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…
Cancel
Save