Move confirmation processing on to worker threads rather than io threads. (#4634)

This commit is contained in:
clemahieu 2024-05-21 21:55:06 +01:00 committed by GitHub
commit 7e23de0ae2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,7 +63,7 @@ void nano::election::confirm_once (nano::unique_lock<nano::mutex> & lock_a)
lock_a.unlock ();
node.background ([node_l = node.shared (), status_l, confirmation_action_l = confirmation_action] () {
node.workers.push_task ([node_l = node.shared (), status_l, confirmation_action_l = confirmation_action] () {
node_l->process_confirmed (status_l);
if (confirmation_action_l)