mirror of
https://github.com/dashpay/dash.git
synced 2024-12-23 19:12:47 +01:00
merge bitcoin#24002: add thread safety lock assertion to WriteBlockIndexDB()
This commit is contained in:
parent
04a3f65032
commit
e5e37458bb
@ -331,6 +331,7 @@ void BlockManager::Unload()
|
||||
|
||||
bool BlockManager::WriteBlockIndexDB()
|
||||
{
|
||||
AssertLockHeld(::cs_main);
|
||||
std::vector<std::pair<int, const CBlockFileInfo*>> vFiles;
|
||||
vFiles.reserve(m_dirty_fileinfo.size());
|
||||
for (std::set<int>::iterator it = m_dirty_fileinfo.begin(); it != m_dirty_fileinfo.end();) {
|
||||
|
Loading…
Reference in New Issue
Block a user