Fixing deadlock while flushing blocks.

This commit is contained in:
clemahieu 2018-01-01 03:51:56 -06:00
commit a80a9c0d46

View file

@ -895,7 +895,9 @@ void rai::bootstrap_attempt::run ()
}
// Flushing may resolve forks which can add more pulls
BOOST_LOG (node->log) << "Flushing unchecked blocks";
lock.unlock ();
node->block_processor.flush ();
lock.lock ();
BOOST_LOG (node->log) << "Finished flushing unchecked blocks";
}
if (!stopped)