From 542d94e3dd3f4a248dccd3aec36b2416c09c05a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Wo=CC=81jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Sun, 2 Jun 2024 20:59:06 +0200 Subject: [PATCH] Limit vote generator max batch size --- nano/node/vote_generator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nano/node/vote_generator.cpp b/nano/node/vote_generator.cpp index a0619d7ceb..35dd917d38 100644 --- a/nano/node/vote_generator.cpp +++ b/nano/node/vote_generator.cpp @@ -28,7 +28,7 @@ nano::vote_generator::vote_generator (nano::node_config const & config_a, nano:: stats (stats_a), logger (logger_a), is_final (is_final_a), - vote_generation_queue{ stats, nano::stat::type::vote_generator, nano::thread_role::name::vote_generator_queue, /* single threaded */ 1, /* max queue size */ 1024 * 32, /* max batch size */ 1024 * 4 }, + vote_generation_queue{ stats, nano::stat::type::vote_generator, nano::thread_role::name::vote_generator_queue, /* single threaded */ 1, /* max queue size */ 1024 * 32, /* max batch size */ 256 }, inproc_channel{ std::make_shared (node, node) } { vote_generation_queue.process_batch = [this] (auto & batch) {