mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge b51e60f914 into merged_master (Bitcoin PR bitcoin/bitcoin#22564)
This commit is contained in:
commit
628a1506e1
10 changed files with 39 additions and 87 deletions
|
|
@ -313,20 +313,6 @@ bool BlockManager::LoadBlockIndex(const Consensus::Params& consensus_params)
|
|||
return true;
|
||||
}
|
||||
|
||||
void BlockManager::Unload()
|
||||
{
|
||||
m_blocks_unlinked.clear();
|
||||
|
||||
m_block_index.clear();
|
||||
|
||||
m_blockfile_info.clear();
|
||||
m_last_blockfile = 0;
|
||||
m_dirty_blockindex.clear();
|
||||
m_dirty_fileinfo.clear();
|
||||
|
||||
m_have_pruned = false;
|
||||
}
|
||||
|
||||
bool BlockManager::WriteBlockIndexDB()
|
||||
{
|
||||
AssertLockHeld(::cs_main);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue