From 7e23de0ae23b8be163bcb62cef9e79f57f0a8234 Mon Sep 17 00:00:00 2001 From: clemahieu Date: Tue, 21 May 2024 21:55:06 +0100 Subject: [PATCH] Move confirmation processing on to worker threads rather than io threads. (#4634) --- nano/node/election.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nano/node/election.cpp b/nano/node/election.cpp index 40f1f2b864..8e4854db2e 100644 --- a/nano/node/election.cpp +++ b/nano/node/election.cpp @@ -63,7 +63,7 @@ void nano::election::confirm_once (nano::unique_lock & 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)