From 81f15551b78ffa67b9e39325fb82375467ae8a6c Mon Sep 17 00:00:00 2001 From: clemahieu Date: Wed, 1 Mar 2023 11:20:27 +0000 Subject: [PATCH] Lowering block_processor max transaction duration to 500ms from 5s. This increases write transaction availability at the expense of slightly lower throughput. --- nano/node/nodeconfig.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nano/node/nodeconfig.hpp b/nano/node/nodeconfig.hpp index 39d0307299..9b59a4394e 100644 --- a/nano/node/nodeconfig.hpp +++ b/nano/node/nodeconfig.hpp @@ -82,7 +82,7 @@ class node_config nano::ipc::ipc_config ipc_config; std::string external_address; uint16_t external_port{ 0 }; - std::chrono::milliseconds block_processor_batch_max_time{ network_params.network.is_dev_network () ? std::chrono::milliseconds (500) : std::chrono::milliseconds (5000) }; + std::chrono::milliseconds block_processor_batch_max_time{ std::chrono::milliseconds (500) }; std::chrono::seconds unchecked_cutoff_time{ std::chrono::seconds (4 * 60 * 60) }; // 4 hours /** Timeout for initiated async operations */ std::chrono::seconds tcp_io_timeout{ (network_params.network.is_dev_network () && !is_sanitizer_build ()) ? std::chrono::seconds (5) : std::chrono::seconds (15) };