From 2b1e7116d3d1977dda9dffc398d27bf7fd4cbea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Wo=CC=81jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Wed, 22 Feb 2023 14:35:23 +0100 Subject: [PATCH] Increase activation delay + queue size It was found during testing that a bit longer delay works better --- nano/lib/config.hpp | 2 +- nano/node/optimistic_scheduler.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nano/lib/config.hpp b/nano/lib/config.hpp index 8ad098ca8f..ceac7ee89d 100644 --- a/nano/lib/config.hpp +++ b/nano/lib/config.hpp @@ -304,7 +304,7 @@ class network_constants std::chrono::milliseconds telemetry_cache_cutoff{ 1000 * 130 }; // 2 * `telemetry_broadcast_interval` + some margin /** How much to delay activation of optimistic elections to avoid interfering with election scheduler */ - std::chrono::seconds optimistic_activation_delay{ 5 }; + std::chrono::seconds optimistic_activation_delay{ 30 }; /** Returns the network this object contains values for */ nano::networks network () const diff --git a/nano/node/optimistic_scheduler.hpp b/nano/node/optimistic_scheduler.hpp index 8bab1e1862..e5f13ae23c 100644 --- a/nano/node/optimistic_scheduler.hpp +++ b/nano/node/optimistic_scheduler.hpp @@ -39,7 +39,7 @@ class optimistic_scheduler_config final std::size_t gap_threshold{ 32 }; /** Maximum number of candidates stored in memory */ - std::size_t max_size{ 1024 * 16 }; + std::size_t max_size{ 1024 * 64 }; }; class optimistic_scheduler final