From 82de1a77fe5e888b90ae2821f03f8a6e19b524a8 Mon Sep 17 00:00:00 2001 From: Russel Waters Date: Wed, 10 Jul 2019 15:07:42 -0400 Subject: [PATCH] set default active_election_size to 50k (#2143) --- nano/core_test/node.cpp | 4 ++-- nano/node/nodeconfig.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nano/core_test/node.cpp b/nano/core_test/node.cpp index 9586ab60..1ee3173c 100644 --- a/nano/core_test/node.cpp +++ b/nano/core_test/node.cpp @@ -776,7 +776,7 @@ TEST (node_config, v17_values) tree.put_child ("diagnostics", diagnostics_l); tree.put ("use_memory_pools", true); tree.put ("confirmation_history_size", 2048); - tree.put ("active_elections_size", 8000); + tree.put ("active_elections_size", 50000); tree.put ("bandwidth_limit", 5242880); tree.put ("conf_height_processor_batch_min_time", 0); } @@ -794,7 +794,7 @@ TEST (node_config, v17_values) ASSERT_TRUE (config.diagnostics_config.txn_tracking.ignore_writes_below_block_processor_max_time); ASSERT_TRUE (config.use_memory_pools); ASSERT_EQ (config.confirmation_history_size, 2048); - ASSERT_EQ (config.active_elections_size, 8000); + ASSERT_EQ (config.active_elections_size, 50000); ASSERT_EQ (config.bandwidth_limit, 5242880); ASSERT_EQ (config.conf_height_processor_batch_min_time.count (), 0); diff --git a/nano/node/nodeconfig.hpp b/nano/node/nodeconfig.hpp index 00e0da52..bf4b92cf 100644 --- a/nano/node/nodeconfig.hpp +++ b/nano/node/nodeconfig.hpp @@ -68,7 +68,7 @@ public: /** Timeout for initiated async operations */ std::chrono::seconds tcp_io_timeout{ (network_params.network.is_test_network () && !is_sanitizer_build) ? std::chrono::seconds (5) : std::chrono::seconds (15) }; std::chrono::nanoseconds pow_sleep_interval{ 0 }; - size_t active_elections_size{ 8000 }; + size_t active_elections_size{ 50000 }; /** Default maximum incoming TCP connections, including realtime network & bootstrap */ unsigned tcp_incoming_connections_max{ 1024 }; bool use_memory_pools{ true };