Do not wait for vote processor during AEC processing loop (#3953)

This commit is contained in:
Piotr Wójcik 2022-09-26 17:07:11 +02:00 committed by GitHub
commit 4013049a8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -338,15 +338,6 @@ void nano::active_transactions::request_loop ()
while (!stopped && !node.flags.disable_request_loop)
{
// If many votes are queued, ensure at least the currently active ones finish processing
lock.unlock ();
condition.notify_all ();
if (node.vote_processor.half_full ())
{
node.vote_processor.flush ();
}
lock.lock ();
auto const stamp_l = std::chrono::steady_clock::now ();
request_confirm (lock);