MCPcopy Create free account
hub / github.com/ElementsProject/elements / Unload

Method Unload

src/node/blockstorage.cpp:338–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338void BlockManager::Unload()
339{
340 m_blocks_unlinked.clear();
341
342 for (const BlockMap::value_type& entry : m_block_index) {
343 delete entry.second;
344 }
345
346 m_block_index.clear();
347
348 m_blockfile_info.clear();
349 m_last_blockfile = 0;
350 m_dirty_blockindex.clear();
351 m_dirty_fileinfo.clear();
352}
353
354bool BlockManager::WriteBlockIndexDB()
355{

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45

Calls 1

clearMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36