Skip to content

Commit

Permalink
Lowering block_processor max transaction duration to 500ms from 5s. T…
Browse files Browse the repository at this point in the history
…his increases write transaction availability at the expense of slightly lower throughput. (#4163)
  • Loading branch information
clemahieu committed Mar 2, 2023
1 parent 3e7e881 commit 46e12eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/node/nodeconfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) };
Expand Down

0 comments on commit 46e12eb

Please sign in to comment.