Fixing deadlock while flushing blocks.
This commit is contained in:
parent
e44a9f584f
commit
a80a9c0d46
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue